Discord Bot Hosting
Mamba Host’s Discord bot hosting provides production-grade infrastructure for moderation suites, music bots, automation agents, and AI-powered assistants. Every container runs on Dell PowerEdge R630 hardware (dual Intel E5-2680v4, 128 GB RAM, NVMe storage) behind 99.9% uptime targets, Cloudflare-backed DDoS mitigation, and auto-restart orchestration.
Platform Overview
Section titled “Platform Overview”- Runtimes: Node.js 18/20 and Python 3.11 with full support for Discord.js, Eris, Oceanic, discord.py, Nextcord, Py-cord, Disnake, Hikari, and custom frameworks.
- Provisioning: Containers boot in under two minutes through https://panel.mambahost.com and inherit our standard monitoring + backup policies.
- Access: SFTP/FTP, web file manager, live console streaming, package managers (npm/pip), and an encrypted environment-variable editor for tokens/secrets.
- Automation: Scheduler for cron-style restarts or script execution, Netlify/n8n/webhook integrations, optional MySQL databases, and status webhooks for CI/CD events.
- Observability: Real-time CPU/RAM graphs, auto-restart history, downloadable logs, and incident alerts mirrored to https://status.mambahost.com.
Architecture & Data Flow
Section titled “Architecture & Data Flow”- Gateway connection: Your bot container establishes a TLS tunnel to Discord’s gateway using intents you configure.
- Runtime cluster: Processes run inside isolated Docker containers on NVMe-backed nodes; per-plan CPU and RAM limits prevent noisy neighbors.
- Persistence layer: SQLite ships by default; Pro/Premium plans can request managed MySQL with phpMyAdmin for inventories, economy, or analytics data.
- Secret management: Tokens, API keys, and webhooks live inside the environment editor (AES-256 encrypted at rest) and are injected as
process.env/os.getenv. - Resilience loop: A watchdog monitors processes, restarting within seconds if exit codes are non-zero, and emits events to the panel + optional Discord alerts.
Plans & Capacity Guidelines
Section titled “Plans & Capacity Guidelines”Plan data is centralized in src/games/game-server-products.ts, ensuring marketing pages and docs stay in sync.
| Plan | Monthly Price | RAM | vCPU | Storage | Suggested Use Cases |
|---|---|---|---|---|---|
| Starter | $1.99 | 512 MB | 0.25 | 5 GB NVMe | Lightweight moderation utilities, webhook relays, slash-command helpers |
| Pro | $5.49 | 1 GB | 0.5 | 10 GB NVMe | Music/voice bots, multi-module Discord.js apps, sharded deployments up to 2 shards |
| Premium | $9.49 | 2 GB | 1.0 | 20 GB NVMe | AI-backed bots, ML inference, multiple concurrent bots, heavy REST traffic |
When to scale: increase tiers once sustained RAM exceeds 75%, audio transcoding pegs CPU over 70%, or you need additions like managed MySQL, background workers, or GPU-assisted inference (premium beta).
Feature Matrix
Section titled “Feature Matrix”| Capability | Starter | Pro | Premium |
|---|---|---|---|
| Auto-Restart & Watchdog | ✅ | ✅ | ✅ |
| Environment Variable Vault | ✅ | ✅ | ✅ |
| Scheduled Tasks | ✅ (hourly) | ✅ (minutely) | ✅ (minutely + chained) |
| MySQL Database | Optional Add-on | ✅ Included on request | ✅ Included (multiple) |
| SSH / SFTP Access | ✅ | ✅ | ✅ |
| Multiple Bot Processes | Manual | Supported (Supervisor) | Fully supported with PM2/multiprocess |
| Priority Support SLA | Community | 8-hour target | 2-hour target |
Security Best Practices
Section titled “Security Best Practices”- Rotate tokens after each major deployment; store them only via the panel’s env editor.
- Least privilege your bot by enabling only required gateway intents in the Discord Dev Portal.
- Dependency scanning: run
npm audit/pip-auditlocally before uploading; malicious packages are the top source of bot compromises. - Webhooks & API keys: never commit secrets to repos; use env vars for Stripe, OpenAI, or proprietary endpoints.
- TLS enforcement: outbound requests leave through hardened egress; inbound management traffic is HTTPS-only with HSTS on the panel.
Performance Patterns
Section titled “Performance Patterns”- Shard management: use Discord.js’
ShardingManageror Disnake’sAutoShardedBoton Pro/Premium tiers; keep shard counts aligned with guild numbers to avoid unnecessary RAM usage. - Voice workloads: music bots rely on FFmpeg—open a ticket if you need system-level codecs or libsodium for sodium-native voice encryption.
- Caching strategy: shift large caches to Redis/Upstash via environment variables if your command handlers rely on heavy lookups.
- Async jobs: schedule queue processors or cron-style scripts in the panel scheduler instead of busy-wait loops inside the main process.
Operational Playbooks
Section titled “Operational Playbooks”- Moderation suites: combine auto-mod filters, logging channels, and timed punishments with MySQL persistence for long-term history.
- Creator automation: integrate with Creator Labs deployments to sync Twitch events, YouTube uploads, or Netlify form submissions straight into Discord.
- Economy/RPG bots: use managed MySQL plus scheduled backups; set up daily snapshots via the panel to avoid data loss during big updates.
- AI copilots: run inference through external APIs (OpenAI, Anthropic) or host lightweight models; throttle requests and leverage rate-limiters to stay under Discord’s interaction deadlines.
Compliance & Reliability
Section titled “Compliance & Reliability”- Data residency: nodes currently operate out of Texas (USA). Multi-region failover is on the roadmap; contact support for custom placement.
- Backups: environment variables, file systems, and MySQL dumps can be snapshotted nightly (opt-in). Retention defaults to 7 days.
- Incident response: outages and maintenance events publish to https://status.mambahost.com and optionally to your Discord via webhook.
- Access control: invite teammates into the panel with scoped permissions (view logs, deploy, manage billing).
Quick Links
Section titled “Quick Links”- Deployment Guide – Upload workflows, dependency installs, env setup, and CI tips.
- Operations & Scaling – Monitoring, sharding, backups, and cost management.
- Troubleshooting & Runbooks – Common errors, rate limits, crash loops.
src/games/game-server-products.ts– Plan definitions powering marketing + docs.- Support: support@mambahost.com or Discord https://discord.gg/mambahost