# Setting up the discord bot

This might seem obvious for most of you however some people dont know that you must invite the discord bot for the commands to work.

You can invite the bot with this link [**https://discord.com/oauth2/authorize?client\_id=1243862713831260160\&permissions=413189663952\&integration\_type=0\&scope=bot+applications.commands**](https://discord.com/oauth2/authorize?client_id=1243862713831260160\&permissions=413189663952\&integration_type=0\&scope=bot+applications.commands)

**When its invited you should do the following before using the `/setup` command.**

* Make a role for people that can use commands (eg a game mod role)
* Make a channel or use an existing channel where romod will send its logs.

With the log channel, please make sure the bot can access it. The bot needs the view channel and send messages permission in your log channel.

<figure><img src="/files/SvSfG8lHehbu1hbrov3M" alt="" width="375"><figcaption></figcaption></figure>

\####################################################################

After you've done this, you can use the setup command

<figure><img src="/files/GUpiMpKixUOErA24BzHo" alt="" width="524"><figcaption></figcaption></figure>

* Apikey - The key you got from [this guide](/romod/setup/getapikey.md)
* universeid - The key you from [here](/romod/setup/getuniverseid.md)
* logchannel - The channel you want romod to log its actions in (make sure it can access it)
* modrole - The role which is able to use romods commands


---

# 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.jbz.dev/romod/setup/discordbot.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.
