TutorialFebruary 1, 20263 min read

Deploy a Discord Bot in 60 Seconds

You want a Discord bot. Maybe a moderation bot, a music bot, or something custom for your server. With Claude Code and DartUp, you can go from idea to running bot faster than it takes to make coffee.

The Whole Process

Claude Code

You: Build me a Discord bot that responds to /ping with "Pong!"

Creating Discord bot with discord.js...

✓ Created index.js with slash commands

✓ Created package.json

✓ Added .env.example for DISCORD_TOKEN

You: Deploy this to DartUp as a daemon with my token

Deploying Discord bot...

✓ Detected: Node.js daemon (discord.js)

✓ Injected DISCORD_TOKEN

✓ Container started

Bot is online! 🤖

Total time: Under 60 seconds. No server setup, no Docker files, no DevOps.

Why This is a Game-Changer

Traditionally, hosting a Discord bot meant:

  • Setting up a VPS or cloud server
  • Installing Node.js, configuring the environment
  • Writing systemd services for auto-restart
  • Setting up process managers like PM2
  • Managing SSH keys and security
  • Paying $5-20/month for a server

With DartUp + Claude Code, you just say what you want and it's done. The bot runs 24/7, auto-restarts on crash, and costs $0 on the free tier.

What You Need

Step 1: Create Your Bot on Discord

If you haven't already:

  1. Go to Discord Developer Portal
  2. Click "New Application" and name it
  3. Go to "Bot" section, click "Add Bot"
  4. Copy the bot token (keep it secret!)
  5. Enable required intents (Message Content if needed)
  6. Use OAuth2 URL Generator to invite the bot to your server

Step 2: Build the Bot with Claude

Tell Claude what you want your bot to do:

Claude Code

You: Create a Discord bot with discord.js that:

- Responds to /ping with latency

- Has /roll command for dice rolling

- Welcomes new members

Claude will create all the files you need: the main bot file, package.json, and a .env.example showing what environment variables are needed.

Step 3: Deploy to DartUp

Here's where the magic happens. Tell Claude to deploy:

Claude Code

You: Deploy this Discord bot to DartUp as a daemon

My token is: MTExxx...your_token_here

DartUp automatically:

  • Detects it's a Discord bot (from discord.js dependency)
  • Configures it as a daemon (no HTTP port needed)
  • Injects your DISCORD_TOKEN securely
  • Starts the container and keeps it running 24/7

What is a "Daemon"?

A daemon is a long-running background process. Unlike web apps that respond to HTTP requests, Discord bots connect to Discord's gateway and stay connected. DartUp's daemon mode is perfect for:

  • Discord bots (discord.js, Eris, etc.)
  • Telegram bots
  • Background workers and schedulers
  • Any process that runs continuously

Note: Daemons require Pro

Daemon deployments are a Pro feature ($9/month). The free tier is for web apps with HTTP endpoints. Upgrade to Pro to host your bots 24/7.

Supported Bot Frameworks

DartUp auto-detects these as daemons and configures them correctly:

Node.js

  • • discord.js
  • • Eris
  • • telegraf (Telegram)
  • • node-telegram-bot-api

Python

  • • discord.py
  • • py-cord
  • • python-telegram-bot
  • • aiogram

Example: Moderation Bot

Here's a more complex example. Tell Claude:

Claude Code

You: Build a Discord moderation bot with:

- /kick and /ban commands (admin only)

- Auto-delete messages with slurs

- /warn system that tracks warnings per user

- /warnings to check a user's warnings

Then deploy to DartUp with my token

Claude builds it, you deploy it, your server is moderated. All in one conversation.

Monitoring Your Bot

After deployment, you can check on your bot:

Claude Code

You: Check status of my Discord bot on DartUp

Status: Running

Uptime: 3 days, 4 hours

Memory: 45MB / 512MB

You: Show logs for my bot

[2026-02-01 10:23:45] Bot logged in as MyBot#1234

[2026-02-01 10:24:01] Handled /ping from user123

[2026-02-01 10:25:12] Handled /roll from user456

Updating Your Bot

Want to add features? Just tell Claude:

Claude Code

You: Add a /quote command that returns a random inspirational quote

✓ Added /quote command to index.js

You: Deploy the update

✓ Bot redeployed with new features

DartUp handles the update with minimal downtime. Your bot reconnects to Discord automatically.

Conclusion

Discord bot hosting used to be a pain. Now it's a conversation. Build with Claude, deploy to DartUp, iterate instantly. Your bot is online 24/7 without you touching a server.

Ready to deploy your bot?

Get started with DartUp Pro and have your Discord bot online in minutes.