# 1. Create and install the bot

## Discord Bot

Get on <https://discord.com/developers/applications> and log in !

![](/files/mXlm1Vwlnj1xD6NU2KMZ) Click on "New Application"

Name your bot, and create it !&#x20;

![](/files/9GVvGcXexVSsoCcktCAq)

Got in "Bot" section, and click "Add bot". The click on "Yes do it!"

![](/files/w4wNJJ0TxhaFaOCsuWBo)![](/files/lBGRP1hXBbqhIEIahYv3)

Click on "Reset Token" > "Yes, do it!"

![](/files/Aekk5wRQwvoYsZUFK15X)![](/files/CZzbnHaiS5MgaB8QrihM)

Copy the Bot Token from the discord website to your config.lua file !

![](/files/dUlPWGwuLbupnj0CSeN7)

![](/files/cUSOP2xYxoWJG9K9VUbX)

Go down on the page, and check the box: "Administrator" then save changes

![](/files/pgLgdtIsfUsHK7r3xvFB)

Go to the section: OAuth2 > URL Generator. Then tick "Bot" and "Administrator". Copy the link, put it in your web browser, then invite the bot on your own discord server !

![](/files/LnxMX5fNTa9aNLfoifod)

![](/files/S88sEOfMabA8Zdybgqe5)


---

# 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://dp-store.gitbook.io/force-discord-presence/guides/1.-create-and-install-the-bot.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.
