Ask coding questions

← Back to all posts
Discord bot game
StupitTurtle (0)

I followed a tutorial on how to set up a basic discord bot and now I want to add a simple Russian roulette game. But for some reason, it is not printing it in my server but in my terminal. Does anyone know how to fix that?

Comments
hotnewtop
InvisibleOne (3227)

Your code looks just fine to me, if your worried about the on_ready() event that's supposed to print to the terminal to tell you that you have logged on, your bot should be running. Everything else should be triggered by your commands.
Another thing, you should hide your token using replit secrets so it doesn't get stolen by someone.

Coder100 (18939)

That is because you told it to do that silly!
print will print a message into the terminal. It has always done it, regardless of whether or not you have a discord bot.

In order to make your discord bot do that, you must actually make your code do that, using like ctx and those things.