NetrunHome

Bots

How to put a Discord bot online without a server

· 4 min read

To keep a Discord bot online around the clock, people usually rent a VPS and keep the process running on it — setting up auto-start, making sure the bot does not crash, and paying for the server every month.

Netrun takes that part off your plate: you upload the bot's code and add the token — starting it and keeping it running is on us. Let's walk through it step by step.

  1. Prepare the bot code#

    Gather your project into a single folder with a dependencies file: package.json for Node.js (discord.js) or requirements.txt for Python (discord.py). Read the token from an environment variable, not from the code.

  2. Get the token in the Developer Portal#

    Open the Discord Developer Portal, create an application and a bot, then copy the token in the Bot section. This is the access key to your bot — keep it secret.

  3. Upload the project to Netrun#

    As a ZIP archive or by importing from GitHub. Netrun detects the language and builds the project itself — no need to write a Dockerfile.

  4. Add the token and start it#

    Enter the bot token in the secrets during setup and hit start — Netrun runs the bot on its own servers.

  5. Check that the bot is online#

    Open your server in Discord — the bot should appear in the member list with an "online" status and respond to commands.

On the free plan a bot runs for 24 hours and then stops: your code, settings and token stay where they are, nothing is deleted, and you get a warning shortly before it stops. To keep the bot online with no time limit, you need the Pro plan. A Telegram bot is published the same way. Try Netrun.

Get your own project online

Upload your code, answer a couple of questions and get a working link. There is a free plan

Try Netrun
All blog articles