Skip to content

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.


PlanBest ForSuggested Use Cases
StarterSimple botsModeration utilities, webhook relays, slash-command helpers
ProMusic & utility botsVoice bots, multi-module Discord.js apps, sharded deployments
PremiumMulti-feature botsAI-backed bots, ML inference, multiple concurrent bots

  • Runtime: Node.js 18/20+
  • Libraries: Discord.js, Eris, Oceanic
  • Runtime: Python 3.11+
  • Libraries: discord.py, Nextcord, Py-cord, Disnake, Hikari

  1. Create your bot container

    Go to panel.mambahost.com → Create Server → Discord Bot Hosting

  2. Select your runtime

    Choose Node.js or Python and your preferred version

  3. Deploy and configure

    Deployment completes in about 2 minutes — note your SFTP credentials

  4. Upload your code

    Use SFTP to upload your bot files to /home/container

  5. Set environment variables

    Add your DISCORD_TOKEN and other secrets in Startup → Variables

  6. Start and verify

    Start the bot and check the console for gateway login confirmation


FeatureStarterProPremium
Auto-Restart & Watchdog✅✅✅
Environment Variable Vault✅✅✅
Scheduled TasksHourlyMinutelyMinutely + chained
MySQL DatabaseAdd-onIncludedMultiple
SSH / SFTP Access✅✅✅
Multiple Bot ProcessesManualSupervisorPM2/multiprocess
Priority SupportCommunity2-hour target30-minute target

  1. Gateway connection — Your bot establishes a TLS tunnel to Discord’s gateway

  2. Isolated container — Processes run in Docker containers on NVMe-backed nodes

  3. Persistence layer — SQLite included; MySQL available on Pro/Premium

  4. Secret management — Tokens stored encrypted (AES-256) and injected as environment variables

  5. Watchdog — Automatic restart within seconds if your bot crashes


  • Auto-mod filters and logging
  • Timed punishments with MySQL persistence
  • Audit logging to Discord channels
  • FFmpeg and libsodium available (request if needed)
  • Low-latency audio streaming
  • Queue management and playlists
  • Connect to OpenAI, Anthropic, or other APIs
  • Throttle requests to meet Discord interaction deadlines
  • Use environment variables for API keys
  • Managed MySQL for persistent data
  • Scheduled backups to prevent data loss
  • Daily snapshots before big updates

  1. Rotate tokens after each major deployment

  2. Enable only required gateway intents in the Discord Dev Portal

  3. Run dependency scans (npm audit / pip-audit) before uploading

  4. Never commit secrets — use environment variables for all API keys

  5. Use HTTPS for all outbound API requests


RecommendationWhy
Use sharding on Pro/PremiumReduces memory per shard as guilds grow
Offload heavy caches to RedisPrevents memory bloat
Schedule async jobs in panelAvoid busy-wait loops in your main process
Request FFmpeg/libsodiumRequired for voice bots