Discord Bot Hosting
Host your Discord bot with production-grade infrastructure, automatic restarts, and secure environment management. Support for Node.js, Python, and all major Discord libraries.
Choose Your Plan
Section titled “Choose Your Plan”| Plan | Best For | Suggested Use Cases |
|---|---|---|
| Starter | Simple bots | Moderation utilities, webhook relays, slash-command helpers |
| Pro | Music & utility bots | Voice bots, multi-module Discord.js apps, sharded deployments |
| Premium | Multi-feature bots | AI-backed bots, ML inference, multiple concurrent bots |
Supported Runtimes & Libraries
Section titled “Supported Runtimes & Libraries”Node.js
Section titled “Node.js”- Runtime: Node.js 18/20+
- Libraries: Discord.js, Eris, Oceanic
Python
Section titled “Python”- Runtime: Python 3.11+
- Libraries: discord.py, Nextcord, Py-cord, Disnake, Hikari
Quick Start
Section titled “Quick Start”-
Create your bot container
Go to panel.mambahost.com → Create Server → Discord Bot Hosting
-
Select your runtime
Choose Node.js or Python and your preferred version
-
Deploy and configure
Deployment completes in about 2 minutes — note your SFTP credentials
-
Upload your code
Use SFTP to upload your bot files to
/home/container -
Set environment variables
Add your
DISCORD_TOKENand other secrets in Startup → Variables -
Start and verify
Start the bot and check the console for gateway login confirmation
Platform Features
Section titled “Platform Features”| Feature | Starter | Pro | Premium |
|---|---|---|---|
| Auto-Restart & Watchdog | ✅ | ✅ | ✅ |
| Environment Variable Vault | ✅ | ✅ | ✅ |
| Scheduled Tasks | Hourly | Minutely | Minutely + chained |
| MySQL Database | Add-on | Included | Multiple |
| SSH / SFTP Access | ✅ | ✅ | ✅ |
| Multiple Bot Processes | Manual | Supervisor | PM2/multiprocess |
| Priority Support | Community | 2-hour target | 30-minute target |
Architecture Overview
Section titled “Architecture Overview”-
Gateway connection — Your bot establishes a TLS tunnel to Discord’s gateway
-
Isolated container — Processes run in Docker containers on NVMe-backed nodes
-
Persistence layer — SQLite included; MySQL available on Pro/Premium
-
Secret management — Tokens stored encrypted (AES-256) and injected as environment variables
-
Watchdog — Automatic restart within seconds if your bot crashes
Use Cases
Section titled “Use Cases”Moderation Bots
Section titled “Moderation Bots”- Auto-mod filters and logging
- Timed punishments with MySQL persistence
- Audit logging to Discord channels
Music & Voice Bots
Section titled “Music & Voice Bots”- FFmpeg and libsodium available (request if needed)
- Low-latency audio streaming
- Queue management and playlists
AI Assistants
Section titled “AI Assistants”- Connect to OpenAI, Anthropic, or other APIs
- Throttle requests to meet Discord interaction deadlines
- Use environment variables for API keys
Economy & RPG Bots
Section titled “Economy & RPG Bots”- Managed MySQL for persistent data
- Scheduled backups to prevent data loss
- Daily snapshots before big updates
Security Best Practices
Section titled “Security Best Practices”-
Rotate tokens after each major deployment
-
Enable only required gateway intents in the Discord Dev Portal
-
Run dependency scans (
npm audit/pip-audit) before uploading -
Never commit secrets — use environment variables for all API keys
-
Use HTTPS for all outbound API requests
Performance Tips
Section titled “Performance Tips”| Recommendation | Why |
|---|---|
| Use sharding on Pro/Premium | Reduces memory per shard as guilds grow |
| Offload heavy caches to Redis | Prevents memory bloat |
| Schedule async jobs in panel | Avoid busy-wait loops in your main process |
| Request FFmpeg/libsodium | Required for voice bots |
Helpful Links
Section titled “Helpful Links”Need Help?
Section titled “Need Help?”- Support: support@mambahost.com
- Discord: Join our server