Part 1 · Build

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

By the AI Side Quests team · Updated November 16, 2026

ClaudeDiscordPythonPatreon
The GTA 6 Discord Bot That Pays You
The 60-second version · Watch on Instagram

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.

The honest catch: a bot alone won't make money. The money comes from a server people want to be in. The bot makes your server more useful, and that's what gets people to support it.

What the bot does

CommandWhat happens
/lfgPosts 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.
/voiceOpens a private voice channel for you and up to three friends.
/remindPings you, or the whole channel, after a set number of minutes. Handy for "heist in 30".
/askAnswers 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 /ask command. 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

  1. Open the Discord Developer Portal and click New Application.
  2. Go to Bot, click Reset Token and copy the token somewhere safe. Treat it like a password.
  3. On the same page, turn on Server Members Intent.
  4. Under OAuth2 → URL Generator, tick bot and applications.commands. Under bot permissions, tick Manage Channels, Send Messages, Embed Links and Move Members.
  5. 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:

  1. 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."
  2. Run it and paste errors back. Most fixes were permissions: the bot needs Manage Channels to create voice channels.
  3. 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.

  1. Connect Patreon (or another membership platform) to your Discord server so supporters get a role automatically.
  2. Put that role's name in ASK_ROLES.
  3. Keep /lfg, /voice and /remind free 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.zip

Discord 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