Discord Bot help

Hi guys. currently I am watching the free code camp youtube tutorial on discord bots and after trying out the code in pycharm my bot does not respond with my !hello command


I have checked the permissions of the bot and confirmed that all permissions were given. It seems that the on_message function was not able to be called as the print message could not display yet my bot was able to turn online from the on_ready function. Is there anything I am doing wrong

this is the output example, on_message function not displaying
Thanks.

Not sure what tutorial you are following but it might be for V1 and you are using V2 (e.g. intents are required).

https://discordpy.readthedocs.io/en/stable/migrating.html#intents-are-now-required

https://discordpy.readthedocs.io/en/stable/quickstart.html#a-minimal-bot

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.