# 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 %}
