> 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="https://2270761089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft65ljAxhdyeMKMFD4OR5%2Fuploads%2FekFuGzYHwRbPk7ucYsJ2%2FONE.png?alt=media&amp;token=c3042961-b792-471e-b8ef-5954b63ce244" 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="https://2270761089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft65ljAxhdyeMKMFD4OR5%2Fuploads%2Ft7C0WvLNjQvUObcczAzr%2FTWO.png?alt=media&amp;token=28897d16-aaf7-4df9-bbb6-77c59639a5e2" 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="https://2270761089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft65ljAxhdyeMKMFD4OR5%2Fuploads%2FwMa1IxRXcLOPo1sct4qd%2FTHREE.png?alt=media&amp;token=8b4ed085-71d6-4e45-b9bc-dec93c4d7dfd" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2270761089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft65ljAxhdyeMKMFD4OR5%2Fuploads%2FYoUkR0Tk4EG8wk3VehjT%2FFOUR.png?alt=media&amp;token=44b8feb2-46eb-4015-bebe-e0e4e735ffe6" 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="https://2270761089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft65ljAxhdyeMKMFD4OR5%2Fuploads%2FmMUiLnXKnhIOQTaDjt10%2FFIVE.png?alt=media&amp;token=e6acb123-fd05-44d6-bdc7-4b02547878ac" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2270761089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft65ljAxhdyeMKMFD4OR5%2Fuploads%2FgaqQSPUOBxpGaeRzoUmq%2FSIX.png?alt=media&amp;token=052ab5b3-b65a-4f23-b950-3c88e767fb83" 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="https://2270761089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft65ljAxhdyeMKMFD4OR5%2Fuploads%2FKPXgZn38rkaWgDrhcNqH%2FSEVEN.png?alt=media&amp;token=d0ebbed5-396e-4deb-9e15-30623cee0447" alt=""><figcaption></figcaption></figure>
