Overriding the default provided
on_message
forbids any extra commands from running. To fix this, add abot.process_commands(message)
line at the end of youron_message
. For example:@bot.event async def on_message(message): # do some extra stuff here await bot.process_commands(message)
The default on_message
contains a call to this coroutine, but when you override it with your own on_message
, you need to call it yourself.