How can I make a discord bot stay online even after I close the page?
hillsam001 (24)

I have a discord bot here that I made just as a placeholder for my discord server. Everything works fine, but when I close the tab it goes offline! How can I make it stay online?

You are viewing a single comment. View All
a5rocks (821)

https://www.codementor.io/garethdwyer/building-a-discord-bot-with-python-and-repl-it-miblcwejz#keeping-our-bot-alive

Follow the steps here to keep it alive.

EDIT: Please make sure your token is secure. Regenerate it, and then use a .env file to keep it secure. If people get your token, they can, for example, delete all the channels in every server it has access to. (if you don't want to secure your bot, just make sure it doesn't have the permissions to do anything disastrous)

hillsam001 (24)

@a5rocks Okay, thanks for the tip.

[deleted]

@a5rocks thank you so much! Ur a life saver!