Ask coding questions

← Back to all posts
Discord.js Bot Offline

Yesterday I asked a question about my Discord bot (answered by @Coder100). Now I'm wondering - since the bot is offline, it doesn't respond to commands. - So, what do I do to get it online and able to respond to commands?

Answered by Coder100 (18185) [earned 5 cycles]
View Answer
Coder100 (18185)

Don't forget about running your bot!


Replace TOKEN with your token.


Thanks, this works great @Coder100! One slight thing, when I run a custom command it just brings up the help menu. Do you know why that is?

TAL0S (5)

@Coder100 don't actually put your token in a string on a public repl though...

You should use a .env file