Skip to content

Discord Bot Hosting

Mamba Panel includes a complete Discord bot hosting solution that you can offer to your customers. This guide covers how to configure, manage, and support Discord bot hosting within your Mamba Panel deployment.

Discord bot hosting in Mamba Panel provides:

  • Multiple Runtimes: Node.js 18/20 and Python 3.11 support for Discord.js, discord.py, and other frameworks.
  • Automatic Provisioning: Containers deploy in under two minutes via Pterodactyl integration.
  • Customer Self-Service: Customers manage their bots through the portal with SFTP, file manager, and console access.
  • Auto-Restart: Watchdog monitors processes and restarts on crash with configurable policies.
  • Resource Management: CPU, RAM, and storage limits enforced per plan tier.
  1. Navigate to Products → Discord Bots → Create Plan.
  2. Configure the plan:
SettingStarter ExamplePro ExamplePremium Example
RAM512 MB1 GB2 GB
CPU0.25 vCPU0.5 vCPU1.0 vCPU
Storage5 GB10 GB20 GB
Price$1.99/mo$5.49/mo$9.49/mo
  1. Select the Pterodactyl egg for Discord bots (Node.js or Python).
  2. Map to available nodes in your infrastructure.
  3. Configure features (MySQL add-on, scheduled tasks, etc.).
PlanBest For
StarterLightweight moderation bots, webhook relays, slash-command utilities
ProMusic bots, multi-module apps, sharded deployments (up to 2 shards)
PremiumAI-powered bots, ML inference, multiple concurrent bots, heavy API usage

Customers store sensitive data securely:

  • Discord tokens
  • API keys (OpenAI, Stripe, etc.)
  • Database credentials
  • Webhook URLs

Variables are encrypted at rest and injected as process.env (Node.js) or os.getenv() (Python).

Enable customers to automate:

  • Daily/weekly restarts to clear memory
  • Dependency updates
  • Data exports and backups
  • Cron-style script execution

Configure task frequency limits per plan tier in Products → [Plan] → Features.

For bots requiring persistent storage:

  • SQLite included by default
  • MySQL/MariaDB available as add-on (Pro/Premium)
  • Configure phpMyAdmin access for customer self-service

Configure watchdog behavior:

  • Restart on non-zero exit codes
  • Configurable restart delays
  • Maximum restart attempts before alerting
  • Customer notification options

In their portal, customers can:

  • View real-time console output
  • Manage files via web interface or SFTP
  • Edit environment variables
  • Schedule restarts and tasks
  • Monitor CPU/RAM usage graphs
  • Download logs
  • Trigger manual restarts
  1. Customer purchases Discord bot hosting plan.
  2. Mamba Panel provisions container via Pterodactyl.
  3. Customer receives SFTP credentials and portal access.
  4. Customer uploads bot code and configures environment variables.
  5. Customer starts the bot and monitors via console.
IssueLikely CauseResolution
Bot won’t connectInvalid token, missing intentsVerify token, check Discord Dev Portal intents
Out of memoryInsufficient plan resourcesRecommend upgrade or code optimization
Bot keeps restartingCode errors, missing dependenciesReview console logs, check package.json/requirements.txt
Slow command responsesHeavy processing, rate limitsImplement caching, defer replies

Provide customers with:

Track across your customer base:

  • Total active bot containers
  • Resource utilization trends
  • Popular plan tiers
  • Revenue from Discord bot hosting

Each customer sees:

  • Real-time CPU/RAM graphs
  • Historical uptime statistics
  • Restart history
  • Log downloads

Educate customers on:

  1. Token security: Never commit tokens to Git; use environment variables.
  2. Dependency scanning: Run npm audit or pip-audit before deploying.
  3. Least privilege: Enable only required Discord intents.
  4. Regular rotation: Rotate tokens after staff changes or suspected leaks.

Discord bot hosting uses Pterodactyl eggs:

  • Generic Node.js: For Discord.js, Eris, Oceanic
  • Generic Python: For discord.py, Nextcord, Py-cord, Disnake, Hikari
  • Custom eggs: Create specialized eggs for specific frameworks

Configure egg mappings in Settings → Integrations → Pterodactyl → Eggs.

Consider these factors when pricing:

  • Resource costs per container
  • Support overhead for bot troubleshooting
  • Market rates ($1-10/mo typical range)
  • Upsell opportunities (MySQL, premium support)

Mamba Panel’s flat-rate pricing means your margins improve as you scale.