I have a few commands that worked perfectly, but when I add on_message they don't. I read that you need to add the await bot.process_commands(message) line, but it still doesn't work for me. Why?
@bot.event
async def on_message(message):
if message.content.lower() == 'prefix':
prefix = guilds.find_one({"_id": message.guild.id})["prefix"]
await message.channel.send(f"> The prefix for this server is: {prefix}")
else:
return
await bot.process_commands(message)