Bot suddenly went nuts after pc reboot
##
##@client.listen()
##async def on_message(message):
## userid = f"['{message.author.id}']"
## with open("whitelist.txt") as whitelist:
## whitelist = whitelist.read().split()
## if message.author == client.user:
## return
## if message.channel.id == 978472349827485716:
## return
## if userid not in whitelist:
## msg = message.content
## with open("BadWords.txt") as BadWords:
## BadWordsList = BadWords.read().split(':') #it'll split by space, unless you pass in a custom split condition like '/n' or something
## for word in BadWordsList:
## if word in message.content:
## await message.delete()
## await message.channel.send("Dont say that! contact Dr. Jack Bright#4243 if this made no sense")
## print(message.author,message.content)
## return
``` suddenly, it stopped working right, and started going haywire....no clue what happened but I had to comment out the code
