Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Melendo/BotMeriendo/llms.txt

Use this file to discover all available pages before exploring further.

Before running BotMeriendo you need a Discord bot application and a token from the Discord Developer Portal. This page walks you through creating the application, enabling the privileged intents BotMeriendo requires, and generating an invite URL so the bot can join your server.

Create the bot application

1

Open the Discord Developer Portal

Go to https://discord.com/developers/applications and sign in with your Discord account.
2

Create a new application

Click New Application in the top-right corner. Give it a name — for example, BotMeriendo — then click Create.
3

Add a bot user

In the left sidebar select Bot, then click Add Bot. Confirm when prompted. This creates the bot user that will connect to Discord and appear in your server.
4

Copy the bot token

Under the Token section click Reset Token (you may be asked to enter your 2FA code). Copy the token that appears — this is your TOKEN value. Store it somewhere safe; Discord will not show it again.
5

Save the token to your .env file

Open the .env file in the project root and set the TOKEN variable:
TOKEN=your-token-here
See Env Variables for the full variable reference.

Required intents

BotMeriendo calls discord.Intents.all() and explicitly enables message_content so that prefix commands can read message text. The relevant lines from src/main.py are:
intents = discord.Intents.all()
intents.message_content = True
bot = commands.Bot(command_prefix=PREFIX, intents=intents, description=descripcion)
Several of the intents included in discord.Intents.all() are Privileged Gateway Intents that must be manually enabled in the Developer Portal before the bot is allowed to receive that data. In the Developer Portal, navigate to your application → BotPrivileged Gateway Intents and enable all three toggles:
IntentWhy BotMeriendo needs it
Message Content IntentRequired to read the text of messages so prefix commands (e.g. !play) can be parsed.
Server Members IntentRequired by discord.Intents.all() — lets the bot track member joins, leaves, and voice-state changes.
Presence IntentRequired by discord.Intents.all() — lets the bot observe user presence and activity data.
Click Save Changes after enabling the toggles.

Invite the bot to your server

1

Open the URL Generator

In the Developer Portal, go to OAuth2URL Generator in the left sidebar.
2

Select scopes

Under Scopes, check both:
  • bot
  • applications.commands
3

Select bot permissions

A Bot Permissions panel will appear below the scopes. Enable the following permissions so BotMeriendo can join voice channels and respond in text channels:
  • Connect
  • Speak
  • Send Messages
  • Embed Links
  • Read Message History
4

Authorize the bot

Copy the generated URL at the bottom of the page, open it in your browser, select the server you want to add BotMeriendo to, and click Authorize. The bot will appear in your server’s member list.
BotMeriendo must be in the same voice channel as the user who issues a music command for playback to work. Have the user join a voice channel before calling play — the bot will join automatically and start streaming.

Build docs developers (and LLMs) love