11/13/2026
How to keep a Discord bot online 24/7: free hosting, paid hosting and self-hosting compared
A Discord bot only answers while a program is connected to Discord for it. We compare running it on your own PC, a VPS, free managed hosting and paid hosting: what each costs, what breaks, and how to choose for your server.
A Discord bot is not a website that sits on Discord's servers. It is a program that has to stay connected to Discord's gateway the whole time. When that program stops, the bot goes offline, slash commands answer "The application did not respond", and welcome messages are missed. Keeping a bot online therefore comes down to one question: where does that program run, and what happens when something goes wrong?
Here are the four realistic options, what they cost in money and time, and when each one makes sense.
How it works: you run the bot on your PC or laptop.
Good for: testing and learning. You see errors immediately and can change things fast.
Problems: the bot is offline whenever the computer sleeps, restarts for updates or loses internet. Your home IP address is exposed to the service you connect to, and leaving a PC on all day costs electricity. It is not a home for a bot other people depend on.
How it works: you rent a small virtual server (from a few euros a month), install Node.js or Python, copy your code and keep it running with a process manager such as systemd or PM2.
Good for: developers who want full control, run several bots or need unusual software.
Problems: you are the system administrator. Security updates, firewalls, disk space, restarting after crashes, backups of your bot's data and renewing the server are all your job. A forgotten update or a full disk takes the bot down, usually at night. Plan for an hour or two a month of maintenance even when nothing breaks.
How it works: a platform runs the bot for you. You upload or build the bot, press start, and the platform keeps it connected.
Good for: small and medium community servers, and anyone who does not want to manage a server.
Trade-offs: free hosting has to be paid for somehow. Usually that means limits (fewer resources, sleeping bots, or ads). On Bottly, bots built in the Flow Builder run on Bottly's own machines for free; on the Free plan the hosting time is extended by watching a short ad once a day, and Pro and Ultimate plans have no ads at all.
The big advantage over a VPS is that crashes, restarts and updates are the platform's problem, and logs are one click away when a command fails.
How it works: you have a bot written in JavaScript or Python and rent a hosting plan with a fixed amount of RAM, CPU and disk. You upload a ZIP or connect a GitHub repository, and the panel installs dependencies and starts it.
Good for: bots with their own code, bigger servers and bots that store files (databases, logs, generated pictures).
What to look for:
Whatever you choose, these cause most outages:
| Your situation | Good choice |
| --- | --- |
| Learning, testing a few commands | Your own PC |
| Community server, no code, want it simple | Free managed hosting with a visual builder |
| Bigger server, no ads, region choice, auto-restart | Paid plan on managed hosting |
| Your own JS/Python bot, want a panel and GitHub deploys | Paid bot hosting |
| Several custom services, need root access | Your own VPS |
Whichever route you take, test what happens when the bot restarts: do scheduled messages pick up again, are buttons on old messages still handled, is saved data still there? A bot that survives a restart is a bot that stays online.
Here are the four realistic options, what they cost in money and time, and when each one makes sense.
1. Your own computer
How it works: you run the bot on your PC or laptop.
Good for: testing and learning. You see errors immediately and can change things fast.
Problems: the bot is offline whenever the computer sleeps, restarts for updates or loses internet. Your home IP address is exposed to the service you connect to, and leaving a PC on all day costs electricity. It is not a home for a bot other people depend on.
2. A VPS you manage yourself
How it works: you rent a small virtual server (from a few euros a month), install Node.js or Python, copy your code and keep it running with a process manager such as systemd or PM2.
Good for: developers who want full control, run several bots or need unusual software.
Problems: you are the system administrator. Security updates, firewalls, disk space, restarting after crashes, backups of your bot's data and renewing the server are all your job. A forgotten update or a full disk takes the bot down, usually at night. Plan for an hour or two a month of maintenance even when nothing breaks.
3. Free managed hosting
How it works: a platform runs the bot for you. You upload or build the bot, press start, and the platform keeps it connected.
Good for: small and medium community servers, and anyone who does not want to manage a server.
Trade-offs: free hosting has to be paid for somehow. Usually that means limits (fewer resources, sleeping bots, or ads). On Bottly, bots built in the Flow Builder run on Bottly's own machines for free; on the Free plan the hosting time is extended by watching a short ad once a day, and Pro and Ultimate plans have no ads at all.
The big advantage over a VPS is that crashes, restarts and updates are the platform's problem, and logs are one click away when a command fails.
4. Paid hosting for your own code
How it works: you have a bot written in JavaScript or Python and rent a hosting plan with a fixed amount of RAM, CPU and disk. You upload a ZIP or connect a GitHub repository, and the panel installs dependencies and starts it.
Good for: bots with their own code, bigger servers and bots that store files (databases, logs, generated pictures).
What to look for:
Automatic restarts when the process crashes.
Persistent files: a redeploy should not delete the database file your bot writes. On Bottly hosting you can lock files and folders so a new upload never touches them.
GitHub deploys: a push to your branch should update the bot without copying files by hand.
Logs and a console you can open from a browser or phone.
Enough disk for your code and its dependencies:
node_modules or Python packages often take more space than the code itself.Things that take bots offline on every kind of hosting
Whatever you choose, these cause most outages:
A leaked token. If your bot token is ever posted in a public repository, Discord resets it and the bot disconnects. Keep tokens in environment variables or encrypted settings, never in code.
Unhandled errors. One crash in an event handler can stop a self-written bot completely. Catch errors and log them.
Missing intents. After a library update or a new feature, a bot can connect but receive empty data because an intent was not enabled (see our guide on [permissions and intents](/blog/discord-bot-permissions-and-intents-explained)).
Rate limits. A loop that edits messages or renames channels too often gets the bot rate-limited. Space out repeated actions.
Two copies running. Starting the same token in two places makes both reply twice and fight over interactions. Stop the old one before moving.
How to choose
| Your situation | Good choice |
| --- | --- |
| Learning, testing a few commands | Your own PC |
| Community server, no code, want it simple | Free managed hosting with a visual builder |
| Bigger server, no ads, region choice, auto-restart | Paid plan on managed hosting |
| Your own JS/Python bot, want a panel and GitHub deploys | Paid bot hosting |
| Several custom services, need root access | Your own VPS |
Whichever route you take, test what happens when the bot restarts: do scheduled messages pick up again, are buttons on old messages still handled, is saved data still there? A bot that survives a restart is a bot that stays online.