Skip to content
Advertisement

Simple Discord bot not functioning as its supposed to be |Python

I have recently started coding with python and ended up coding a discord bot. This is the code i ran:

JavaScript

I think this should make the bot say:Commands:!hello, !help, when a user writes !help but in the end nothing happens. Anyone got an idea how i can improve the code so it works?Id love to know

Advertisement

Answer

The event’s name is on_message:

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