> For the complete documentation index, see [llms.txt](https://klema.gitbook.io/sir-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://klema.gitbook.io/sir-docs/configure-the-plugin/setup-discordsrv.md).

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://klema.gitbook.io/sir-docs/configure-the-plugin/setup-discordsrv.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
