Discord bots2 minutes to read

Where can I host a Discord bot for free when my PC is off?

Run a small discord.js or discord.py bot on Bothosting’s free Spark plan. Check its resource limits, weekly renewal and first reply from Discord.

Deploy a Discord bot free

What fits on the free plan?

Bothosting’s Spark plan can run one small Discord bot while your PC is off. Spark costs $0, requires no payment card and includes 256 MB of memory, 25% CPU and 512 MB of storage. Renew the plan manually from your dashboard every 7 days. A slash-command bot with a short dependency list is a good first project.

Measure the whole project against those limits. A handful of JavaScript source files may be tiny, but installed packages, downloaded attachments and local data all take space. A Java bot using JDA needs at least 512 MB of allocated memory on Bothosting. You can check the eligible runtimes on the Discord hosting page.

Try it with one command

  1. Download the discord.js example and put its project files at the deployment root. Keep package.json beside index.js.
  2. Save the application’s bot token in BOT_TOKEN under Variables. Install that same application in a test Discord server.
  3. Start the hosted deployment. In your test server, select this application’s /ping command and send it. The downloadable example replies pong.

Verify the host is answering

If you already run the bot on your laptop, stop that process before testing. Change the example’s reply text to something recognizable, upload the edit, restart the hosted bot and run the command again. Once the new reply appears, close your laptop and repeat the check from another device.

For an existing bot, also try a command that reads saved data and watch memory during startup. Spark can deploy from a public or private GitHub repository and post crash alerts in Discord. Review the free plan limits and renewal terms before inviting more servers.