> For the complete documentation index, see [llms.txt](https://docs.lidistat67.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lidistat67.eu/making-bot-application.md).

# Making Bot Application

## Create bot application

First head on <https://discord.com/developers/applications/> and click on " New Application. Input the name of your choice and click "Confirm"<br>

<figure><img src="/files/JHmrwaVC2nkL7ws6ERAw" alt=""><figcaption></figcaption></figure>

A new screen should pop up. Navigate to the `Bot` section and click on `Add Bot`. Click on `Yes, do it!` to confirm.<br>

<figure><img src="/files/x28X862v1JHHx7QkPR67" alt=""><figcaption></figcaption></figure>

After this, a dashboard for your bot will open. Give your bot a nice profile picture if you want to. It's recommended you switch off the `Public Bot` option. That way, no one except yourself will be able to add this bot to their server. Lastly, copy the token and paste this in your notepad.<br>

<figure><img src="/files/r7ykPwyYWVuaPA1qyl40" alt=""><figcaption></figcaption></figure>

Enable the "Presence Intent", "Server Members" and "Message content" intent within the dashboard.<br>

<figure><img src="/files/w0N5gJTvkqHbdLUAv6Ct" alt=""><figcaption></figcaption></figure>

The last thing you need to do in Discord's developer portal is to obtain an invite link for the bot. To do this, head over to the `OAuth2` tab. Scroll down a bit and select the `Bot` section. Scroll a bit further down and you will see a few permissions. Make sure to select `View Audit Log`, `Manage Channels` and `Manage Messages`.<br>

<figure><img src="/files/Yjg5bcTw2Le8N1oncDBu" alt=""><figcaption></figcaption></figure>

Before you press "copy", scroll down and select the following permissions:<br>

<figure><img src="/files/4cwfzip7MNCrxYupetHD" alt=""><figcaption></figcaption></figure>

`Copy` the link and paste it in your address bar. A new screen will open: choose your server and select all options. Click on `Authorize` and your bot should be offline in your server.<br>

<figure><img src="/files/25g8kcd50MGnInY6KDjt" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.lidistat67.eu/making-bot-application.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
