Get Agent Loadout
Build agentsIntermediateDocs-checked, not yet hands-on tested

Discord bot in an afternoon

Build and host an AI-powered Discord bot for your server.

Starter prompt

Create a discord.js bot with slash commands /ask (answers with Claude Haiku 5.5, max 300 tokens) and /help. Add per-user rate limiting, ignore other bots, read secrets from .env, and add a Procfile or start script so it runs on Railway.

Config

.env.example

DISCORD_TOKEN=
ANTHROPIC_API_KEY=
# never commit .env

Setup steps

  1. Create the app in the Discord Developer Portal and copy the token.
  2. Run the prompt in Claude Code.
  3. Test in a private server.
  4. Deploy to Railway with the env vars set.

Why this works

A small, always-on service is exactly what Railway's Hobby plan is for.

Watch out

Rate limit /ask or a busy server will run up your API bill.

Quick answers

How much does this setup cost per month?

$25–$30/mo. Claude Pro $20 to build, Railway Hobby $5 (includes $5 usage). Bot API calls are pay-per-token on top, small with Haiku 5.5.

Which tools does it use?

Claude Code, discord.js, Railway. Model: Claude Sonnet 5.5 to build; Claude Haiku 5.5 inside the bot.

What should I watch out for?

Rate limit /ask or a busy server will run up your API bill.

Related loadouts

Compare the gear: AI coding agents tier list · AI code review tier list