Since a few days two of my bots dont react on_message(message). In console there show no error.
for example a simple badword script. since last week it worked fine. but now ... no output.
@bot.event
async def on_message(message):
bad_words = ['badword1','badword2','badword3','badword4','badword5','badword6']
if message.author == bot.user:
return
for word in bad_words:
if 0 < message.content.count(word) < 2:
await message.channel.send("{}, bitte achte auf Deine Wortwahl.".format(message.author.mention))
await message.delete()
break
else:
await bot.process_commands(message)
I don't know what is wrong. i hope someone can help me please.