How to host a Discord bot (Python)
Free hosts often sleep and kill the Discord gateway WebSocket. A purpose-built always-on host keeps your bot connected 24/7.
- Create a bot in the Discord Developer Portal and copy the token.
- Write a discord.py bot with
DISCORD_BOT_TOKENfrom the environment. - Sign up on getdiscordbot, paste code, add the token, deploy.