> 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>
