I hereby claim:
- I am justmaffie on github.
- I am justmaffie (https://keybase.io/justmaffie) on keybase.
- I have a public key ASDT3a_UoIJot790XwwQJcDvJYrOrX1l9nej_5KhRfuQ8go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def on_message(self, message): | |
crashChar = "ौौौौ" | |
if crashChar in message.content: | |
try: | |
await bot.delete_message(message) | |
await bot.send_message(message.channel, "**I've delete a message posted by {} because it contained characters which crashes discord. I've also banned him.**".format(message.author.name + "#" + message.author.discriminator + "(ID: " + message.author.id + ")")) | |
await message.server.ban(message.author, "Causing discord to crash because of weird characters.") | |
except: | |
pass |