> For the complete documentation index, see [llms.txt](https://docs.roleplaybot.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roleplaybot.xyz/info/config.md).

# Configuration

Configure your server to unlock the maximum ability of RoleplayBot.

## Server Configuration

To use RoleplayBots interactive commands you must first configure your server. You can do this simply by running the command `/config server`  inside your Discord server and filling out the options. Once you have typed the command you will be prompted to fill in 13 different options, 4 roles and 9 channels.&#x20;

This may seem overwhelming at first, we have broken down each option below to see exactly what you need to enter.

<figure><img src="https://3166164597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdRTUkNUPApfD0yd81MsB%2Fuploads%2FmIsGn4xKqtNhIlcS2fQS%2Fchrome_0F89LL3bnj.gif?alt=media&amp;token=c2791326-e6db-4848-a5f0-b1b8612921b5" alt=""><figcaption></figcaption></figure>

### Roles (Options 1 -> 4)

RoleplayBot uses these roles to restrict and manage certain commands and modules. For example, the **On Duty** role restricts civilian members from performing law enforcement actions with the bot. Subsequently, the law enforcement role restricts civilian members from going **On Duty**.

* `on_duty` - This is a **role** that people will be given upon using the `/on_duty` command as either a police officer, firefighter or medic. We recommend you create a new role called **On Duty** for this option. For RoleplayBot to access this role you must ensure that you place the **@On Duty** role below the **@RoleplayBot** role inside the role hierarchy menu. See the image below for a visual representation of what this looks like. **Important** **Note:** RoleplayBot handles the On Duty role. Make sure this is a new, empty role with no special permissions that no members already have.
* `law_enforcement` - This is a role that people require to access any law enforcement commands. We recommend you create a role called **Law Enforcement** or enter a role that all law enforcement members have for this option.
* `fire_department` - This is a role that people require to access any fire department **and medical** commands. We recommend you create a role called **Fire Department** or enter a role that all fire department members have for this option.&#x20;
* `medical` - This is a role that people require to access any medical commands. We recommend you create a role called **Medical** or enter a role that all medical members have for this option.&#x20;

<figure><img src="https://3166164597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdRTUkNUPApfD0yd81MsB%2Fuploads%2Fblt3Y72PTZOGSRVT2vTC%2Fj91N6kGGRh.png?alt=media&amp;token=ea47c019-1d07-4664-8647-a1a3456374c8" alt=""><figcaption><p>This shows the Discord role hierarchy found inside the server role settings. Make sure that <strong><code>RoleplayBot</code></strong> is above all roles mentioned above.</p></figcaption></figure>

### **Channels (Options 5 -> 12)**

RoleplayBot will use these channels to sent alerts or messages. Members do not need permission to message inside these channels, guide permission levels are provided for each channel.

* `emergency_calls` - This is a channel where all 9-1-1 and 3-1-1 calls will be sent. We recommend that you create a channel called **emergency\_calls** and allow all **On Duty** members to view the channel.
* `panic_alerts` - This is a channel where all panic and PASS ([What is a PASS?](https://en.wikipedia.org/wiki/PASS_device)) alerts will be sent. We recommend that you create a channel called **panic\_alerts** and allow all **On Duty** members to view the channel.
* `jail_admissions` - This is a channel where all jail admissions will be sent. We recommend that you create a channel called **jail\_admissions** and allow all members to view the channel.
* `hospital_admissions` - This is a channel where all hospital admissions will be sent. We recommend that you create a channel called **hospital\_admissions** and allow all members to view the channel.
* `twitter_channel` - This is a channel where all tweets will be sent. We recommend that you create a channel called **twitter** and allow all civilians to view the channel. [What is Twitter (X)?](https://x.com) -> RoleplayBot is aware that Twitters name has changed to X, we have no plans to follow this change.
* `tor_channel` - This is a channel where all anonymous TOR posts will be sent. We recommend that you create a channel called **tor** and allow all civilians to view the channel. [What is TOR?](https://www.torproject.org/)
* `police_logs` - This is a channel where all citations, fines, impounds and BOLOs will be sent. We recommend that you create a channel called **police\_logs** and allow all law enforcement members to view the channel.
* `civilian_logs` - This is a channel where all civilian character actions will be sent (Character created, deleted, edit, etc). We recommend that you create a channel called **civilian\_logs** and allow only server administrators to view the channel.
* `economy_logs` - This is a channel where all economy actions will be sent (Money withdrew, deposited, paid, items bought, etc). We recommend that you create a channel called **economy\_logs** and allow only server administrators to view the channel.

## Economy Configuration

To avoid confusion, you must configure the servers economy using a separate command. This is done is a very similar way to the server configuration, use the command `/config economy`.

* `starting_balance` - This is the amount of money everyone will receive when interacting with the economy for the first time.

{% hint style="info" %}
Starting balance is now added to a users bank account when they first interact with any aspect of the economy module, rather than when they join the server.
{% endhint %}

## Disable & Enable Modules

To disable and restrict everyone from using certain modules you can run the `/disable module` command.

To re-enable a disabled module you can run the `/enable module` command.

## Deleting Configurations

If your having trouble with your configurations or simply want to delete/reset them you can use the provided **/delete\_config** command.

{% hint style="info" %}
You are unable to edit your server configuration. To change a role, channel or setting you must first delete the configuration (/delete\_config) and then reconfigure. No other data is lost during this process.
{% endhint %}
