Ask coding questions

← Back to all posts
Discord.js Bot Offline
[deleted]

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?
Thanks!

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

Don't forget about running your bot!

bot.login("TOKEN");

Replace TOKEN with your token.

[deleted]

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

https://docs.replit.com/repls/secret-keys