# Setup Discord Bot

## Create a New Discord Bot&#x20;

Follow the guide carefully, as the bot requires specific permissions and intents to function smoothly!

1. Log into the [Discord Developer Portal](https://discord.com/developers/applications) and click the '**New Application**' button in the top right corner.
2. Give your bot a name of your choice (you can edit it later if needed).
3. After creating the bot, you'll find yourself in a dashboard. Here, select the 'Bot' option in the sidebar, scroll down slightly, and enable all intents for the bot under the 'Privileged Gateway Intents' section (Presence Intent, Server Members Intent, Message Content Intent).
4. Next, go to the 'OAuth2' option in the sidebar, then within it, go to 'OAuth2 URL Generator.' Check the following options: 'bot,' 'applications.commands.' Scroll down a bit and assign the desired permissions to the bot (Recommended: Administrator).
5. On the same page, scroll all the way down, and use the provided link to invite your Discord bot to the server. B.1: In the Developer Portal, return to the 'Bot' section if you need your bot’s token, and there you can either copy it or request a new one (Reset Token). Place the provided Discord bot token in the config.yml file under the 'discord' section in the 'token' field. (Fill in the other fields as well. Important: guild-id)

{% hint style="success" %}
If you have any questions or need help, feel free to contact us on our [Discord server](https://dc.mongenscave.com/)!
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mongenscave.com/premium-products/discordlink/feature-help/setup-discord-bot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
