How to Upload and Run Your Discord Bot
From local code to a live bot on Endercloud in five minutes.
Introduction
Endercloud bot hosting runs your Discord bot 24/7 with a friendly web panel, no SSH gymnastics required.
Step-by-Step
- 1Open the Game Panel
- 2Pick your bot instance
- 3Open File Manager
- 4Upload your bot files (drag and drop the whole folder)
- 5Make sure
package.json(Node) orrequirements.txt(Python) is at the root - 6Go to Startup β set the command:
- Node.js:
node index.js - Python:
python3 bot.py
- 1Click Save, then Start on the Console tab
Your console should print Bot is ready! or whatever your start message is.
Recommended Project Structure
/your-bot
index.js # main entry
package.json # dependencies
.env # secrets (don't commit!)
/commands
/eventsInstall Dependencies
- The panel runs
npm install/pip install -r requirements.txtautomatically on first start - To re-install manually, open Console and run
npm installorpip install -r requirements.txt
Tip: Push your code to a private Git repo, then use the panel's Git tab to pull updates instead of re-uploading every time.
Warning: Never put your bot token directly in code. Use environment variables instead.
Need More Help?
Bot crashing on start? Paste the error from the console into Discord.
Was this helpful?
Your feedback helps us write better guides.
Related Articles
More from Bot Hosting.
How to Keep Your Bot Online 24/7
Auto-restart on crash, auto-start on reboot, the only two settings you need.
How to Set Environment Variables for Your Bot
Keep tokens, API keys, and secrets out of your code with env vars.
How to Use Python for Your Discord Bot on Endercloud
Set up a discord.py bot from scratch, the right Python version, the right libs.
Still need help?
Our team is on Discord around the clock. Real humans, real answers.