# Setup DiscordSRV

{% hint style="info" %}
This section is currently outdated. Please wait for a proper rewrite.
{% endhint %}

## 1. Set up correctly DiscordSRV

For this, you need to install DiscordSRV plugin on your server. If you can't find the right plugin, click on [this](https://www.spigotmc.org/resources/discordsrv.18494/) link. Download the plugin from the Spigot page, navigate to your plugins folder, upload the plugin and restart your server.

{% hint style="info" %}
***In case you haven't made a Discord bot yet:*** \
\&#xNAN;*Go to discord.dev, create a new application, turn your application into a bot and copy your token and bot's ID.*&#x20;
{% endhint %}

After you did the first step, you can now go to the config file of the DiscordSRV plugin and set up the bot correctly.

## 2. Edit modules.yml

In this step, you need to go into S.I.R's folder and into the modules.yml file. There, find this code:

{% code title="Example modules.yml text" %}

```yaml
discord:
  # Copy your Server ID and paste it here.
  # If the SERVER ID is invalid or is empty, this module will be disabled.
  server-id: SERVER_ID
  # Put every channel you want to receive a message type.
  # Or just put the same channel for every message type lol
  channels:
    first-join: CHANNEL_ID
    join: CHANNEL_ID
    quit: CHANNEL_ID
    chat: CHANNEL_ID
    advances: CHANNEL_ID
```

{% endcode %}

Because you now have set up the DiscordSRV Bot, you can just change SERVERID and CHANNEL\_ID to your liking. Note that if you can't copy channel ID or server ID, you need to go into `Discord > User settings > Advanced` and turn on Developer's mode!

## 3. Edit discord.yml

You can now go into `misc > discord.yml` and start editing this file as you would like to see S.I.R join/leave messages appear on your Discord server.

{% hint style="info" %}
If you need any help, contact us on [this support server](https://discord.gg/s9YFGMrjyF). Thank you!
{% endhint %}
