# Discord Authenticator

***

* First of all, we need to create a bot for our server on the [Discord Developer Portal](https://discord.com/developers/applications).
* This video will be an example for you for bot installation. [Creating a Discord Bot](https://www.youtube.com/watch?v=wGK3b7QDF24).
* After getting the bot on the server, go to the <mark style="background-color:orange;">Config\_sv.lua</mark> file
* Enter the ID of your server as the value in the <mark style="background-color:orange;">ConfigSV.GuildID</mark> Variable.
* After entering the GuildID, copy the token of the bot you created. Then paste it into the variable <mark style="background-color:orange;">ConfigSV.BotToken</mark>
* After these operations, create 5 different roles for the Multicaracter Slot on your server. Or create 2-3 or maybe 1 different role according to your own wishes. Your choice.
* Copy the Rolids of the roles you created and find the <mark style="background-color:orange;">Config.SlotRoles</mark> variable in the Config file and replace the data of the variables from 1 to 5 with the Rolids you copied.

```lua
Config.SlotRoles = { 
    -- [@number] = "@string" 
    -- [slotNumber] = 'Slot Discord Role ID'
    
    [1] = 'YOUR ROLE ID',
    [2] = 'YOUR ROLE ID',
    [3] = 'YOUR ROLE ID',
    [4] = 'YOUR ROLE ID',
    [5] = 'YOUR ROLE ID',
}
```

***

{% hint style="info" %}
**If you give or take roles, the player's slots will become active or inactive when he/she logs out or returns to the menu with the logout command.**
{% 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://docs.0resmon.org/0resmon/wais-resoucres/wais-multicharacterv2/discord-authenticator.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.
