Skip to content
Advertisement

Python discord bot using discord.py problem

I’m trying to make a discord bot using the module discord.py, but I’m running into an issue and I’m unable to fix it. What I’m trying to do is that when someone pings the bot, he answers his prefix, I got that working with :

JavaScript

However none of the code after that works:

JavaScript

, so I cannot use any commands other than mentioning/pinging the bot. Would be nice to know if it’s possible to fix this.

Advertisement

Answer

You probably need to add this here to your on_message command as described in the docs:

JavaScript

https://discordpy.readthedocs.io/en/latest/faq.html#why-does-on-message-make-my-commands-stop-working

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement