Skip to content
Advertisement

discord bot sends infinite messages regardless of user input

I’m trying to make a discord bot respond when someone makes laughing remarks but it infinitely sends gifs whenever someone types anything code is as follows

JavaScript

Advertisement

Answer

JavaScript

In addition to some formatting, I changed some of the variables for the API calls. I commented out the keep_alive.py as I assume you are using that to keep your code hosted on Repl.it or something, and you can just comment it back in. I was also able to get this code to work with my bot and execute as you want.

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