DEV Community

Discussion on: Let's make a Twitch bot with Python!

Collapse
 
fsncryo profile image
Cameron Phillips

hey, my bot runs and displays the arrival message (in twitch chat)
but it doesn't execute any commands I've tried printing ctx.author.name.lower() before the check to see if the message was from the bot and it only prints out a name when the bot types the arrival command.

Collapse
 
cgusb profile image
Gus Becker

I had this issue too! My problem was that I was replacing the line BOT_PREFIX=! in the file .env with an incorrect value. This line tells the bot to look for commands that start with the value passed, so if you are trying to execute a command that starts with an exclamation mark (e.g. !discord), don't change this line!