# Bot application setup

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\
   ![](/files/1ilFjTDSy7cn3fY21VCy)
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\
   ![](/files/ZV7uruHzlgVYtV8yCyHl)
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.\
   ![](/files/vYquoUEkBMtGlRkh7am8)
8. You can copy the **Bot Token** there, it will be needed later when setting up the bot\
   ![](/files/x4HNziyZwsGtJFHewHGo)

\---

### 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\
   ![](/files/bAzZ4h1kKDHSz6MkmeRe)
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.\
   ![](/files/eT6dDgxWE07u4n8Byk53)
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 %}


---

# 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://wiki.foxcodebot.fox-code.eu/installation/bot-application-setup.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.
