Bots & VPS
Deploying a Discord bot
1. Pick your runtime
Bot plans run a Node.js, Python or Java environment — chosen at checkout, changeable later via ticket.
2. Upload your code
- SFTP / file manager: upload your project to the server root.
- Git: set your repo URL in the Startup tab variables (and a token for private repos) — the egg pulls on install/restart.
3. Configure startup
Startup tab variables:
- Main file:
index.js/main.py/ your jar name. - Auto-install dependencies:
package.json(npm install) orrequirements.txt(pip install) run automatically on boot when enabled.
4. Secrets
Never hardcode your bot token. Put it in the environment variables section (Startup tab) and read it with process.env.TOKEN / os.environ["TOKEN"].
5. Start it
Hit Start and watch the console. The bot auto-restarts if it crashes; the crash reason stays in the console log so you can fix the cause.
Tips
- 512 MB (Spark) runs most discord.js/discord.py bots; upgrade if you cache lots of guilds or use heavy libraries.
- Use the Schedules tab for a daily restart if your bot leaks memory.