Part 1 · Build
Build a GTA 6 Crew Discord Bot with Claude Code (Free Code)

When GTA 6 launches, thousands of new crews will form overnight. Most of them will live in a Discord server, and every one of those servers has the same problem: nobody's online at the same time, and nobody knows who wants to play what.
In this guide we build a small Discord bot that fixes that, then look at how to turn it into a little income stream. We built ours with Claude Code; you can copy the finished code from our free downloads page.
What the bot does
| Command | What happens |
|---|---|
/lfg | Posts a "looking for group" card with Join, Leave and Cancel buttons. When the group is full, the bot opens a private voice channel for just those players. |
/voice | Opens a private voice channel for you and up to three friends. |
/remind | Pings you, or the whole channel, after a set number of minutes. Handy for "heist in 30". |
/ask | Answers GTA 6 questions using Claude. You can make it a supporter-only perk. |
Temporary voice channels delete themselves once they're empty, so your server doesn't fill up with dead channels.
What you need
- A computer with Python 3.10 or newer.
- A Discord account and a server where you're an admin.
- An Anthropic API key, only if you want the
/askcommand. You pay per use, and a short answer costs a fraction of a cent to a few cents. - About 15 minutes.
Step 1: Create the bot in Discord
- Open the Discord Developer Portal and click New Application.
- Go to Bot, click Reset Token and copy the token somewhere safe. Treat it like a password.
- On the same page, turn on Server Members Intent.
- Under OAuth2 → URL Generator, tick
botandapplications.commands. Under bot permissions, tick Manage Channels, Send Messages, Embed Links and Move Members. - Open the generated link and add the bot to your server.
Step 2: Run the code
Download the bot from our free downloads page, unzip it, and run:
cd crew-discord-bot
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # then paste your tokens into .env
python bot.py
Put your server's ID in GUILD_ID while you test. Slash commands then show up instantly instead of taking up to an hour.
Step 3: How we built it with Claude Code
We didn't write the bot line by line. We described it to Claude Code in plain English and iterated:
- Spec first. "A discord.py 2 bot with slash commands: /lfg with join buttons that opens a private voice channel when full, /voice, /remind, and /ask using the Anthropic API. Temporary channels delete when empty."
- Run it and paste errors back. Most fixes were permissions: the bot needs Manage Channels to create voice channels.
- Tighten the edges. We asked for a 10-minute cleanup when nobody joins, Discord's 2,000-character limit handled in
/ask, and friendly error messages.
The lesson carries over to any project: give the AI a clear spec, run the result, and feed back exactly what broke.
Step 4: Turn it into income
The bot has a setting called ASK_ROLES. Set it to a role name, and only members with that role can use /ask.
- Connect Patreon (or another membership platform) to your Discord server so supporters get a role automatically.
- Put that role's name in
ASK_ROLES. - Keep
/lfg,/voiceand/remindfree for everyone. Those are what grow the server.
More perk ideas: priority LFG, a private supporters' crew channel, a weekly heist schedule, or setting the bot up for other crews as a paid service.
Real costs
- Hosting: free on a computer that's always on, or roughly $5 a month on a small VPS or hosting platform.
- AI answers: billed per request by Anthropic. Set a monthly spend limit in the Claude Console so there are no surprises.
- Your time: the real cost is moderating and growing the community.
Get the bot code (free)
The full source code, a setup README and a settings template.
Download crew-discord-bot.zipDiscord is a trademark of Discord Inc. GTA and Grand Theft Auto are trademarks of Take-Two Interactive. This site is not affiliated with either company.
Done for you
Rather skip the setup?
We can set this up for you: the bot on your server, a custom tracker, or a Claude setup for your gig.
See services and prices