> For the complete documentation index, see [llms.txt](https://wiki.foxcodebot.fox-code.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.foxcodebot.fox-code.eu/installation/bot-application-setup.md). Agents can also search and read this documentation through its [MCP server](https://wiki.foxcodebot.fox-code.eu/~gitbook/mcp).

# Bot application setup

This page contains info about how to set up the bot in discord.com/developers/ and how to get the bot token.

In order to make your bot unique and be able to make the bot able to join your Discord server, you will need to set up a bot application on Discord's Developer portal. Creating a bot account is an easy process:

### Creating a Bot Application

1. Log in on the Developer portal page (<https://discord.com/developers/>) and navigate to Applications page
2. Click on the **New Application** button in the top right corner\
   ![](https://4092606354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeP19pbKbeSUZaxTjO7p%2Fuploads%2F5tcQW0TAHM1BhqlcBESq%2Fobrazek.png?alt=media\&token=aa6610bf-4315-4954-a221-9b82659eaadc)
3. Choose a name for your application and click **Create**
4. Navigate to the **Bot** tab and click **Add Bot** button in the Build-A-Bot section\
   ![](https://4092606354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeP19pbKbeSUZaxTjO7p%2Fuploads%2FFWIg0fM7LqzYGnDki84R%2Fobrazek.png?alt=media\&token=b2dee8df-8e3b-454d-9ba9-39af1f7e7367)
5. Give your bot a name, an icon, customize the bot to your liking
6. Make sure the **Public Bot** button is off, since you are probably going to use the bot only on your own server
7. Enable all Intents so that the bot can access things like user join events etc.\
   ![](https://4092606354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeP19pbKbeSUZaxTjO7p%2Fuploads%2FPqoAaD3EzV3pvFcquF3s%2Fobrazek.png?alt=media\&token=3317b1b5-cc2d-4e2c-b73a-4ce589e25500)
8. You can copy the **Bot Token** there, it will be needed later when setting up the bot\
   ![](https://4092606354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeP19pbKbeSUZaxTjO7p%2Fuploads%2FGR5qHmJ8k3jWk1GYGlqP%2Fobrazek.png?alt=media\&token=62d894eb-2d1a-4ca2-bea1-9c6bd1ad4b08)

\---

### Inviting the bot to your server

1. In your bot application, navigate to **OAuth2** tab and than to **URL Generator** section
2. Select **Bot** and **Applications.commands** option in Scopes\
   ![](https://4092606354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeP19pbKbeSUZaxTjO7p%2Fuploads%2Fw7Wj71HC2xK6dkW3d91c%2Fimage.png?alt=media\&token=ac7e5847-b74b-4bc3-9c60-5e3fb7099528)
3. Setup permissions. You can use **Administrator** to grant all permissions to the bot. Though please note, that this isn't the most secure option in certain circumstances. Also I would recommend to have 2FA enabled on your account.\
   ![](https://4092606354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeP19pbKbeSUZaxTjO7p%2Fuploads%2FbqGaTIDZ1s28NSTuHQtA%2Fobrazek.png?alt=media\&token=a331e3dd-8b97-44ea-9b9d-1ca7c201394a)
4. You should by now able to copy the resulting URL on the bottom of the page. Paste the URL to your browser, select server you want to add the bot to and click **Authorize** to confirm your decision.

{% hint style="success" %}
Done! Easy, right? :innocent: You can continue and install the bot on your machine!
{% endhint %}

{% hint style="warning" %}
If you ran into any issues during the setup, feel free to join our Discord server and ask for help!
{% endhint %}
