# Raps MX Server - config
#
# Edit the value after =. Leave the notes after # as they are.
# Save the file, then restart RMXS. 0 means off and 1 means on.

[Server]

Server address      = auto               # Use the Peer Cache address, or enter your own IPv4 address or DNS name.
Allow remote guests = 1                  # 0 = this PC only. 1 = allow guests on other computers.
Host password       = auto               # Generates a private key in Host Key.txt on first start.

[Connection]

Peer Cache          = caches.rapsmx.com  # Peer cache name or IPv4 address.
Port                = 7940               # Port used by the peer cache.
Primary TCP port    = 6260               # Incoming TCP port for public room listing.
Primary UDP port    = 6261               # Incoming UDP port for public room listing.
Maximum peers       = 9                  # Total Primary peers, including one upstream.
Public room limit   = 1                  # How many channel names may appear on WinMX. Choose 1 to 4.

[Room 1]

Channel name        = Raps MX1           # Name people see.
Room port           = 6258               # TCP port RMXS hosts this room on. Guests join on this port.
Capacity            = 600                # Maximum number of people, from 1 to 600.
Connections per IP  = 5                  # Per-room limit for guests on the same IP. 0 = unlimited.
Start room          = 1                  # 1 opens this room when RMXS starts. 0 keeps it closed.
Show channel        = 1           # 1 lists the room when remote access is configured.
Topic               = RAPS MX test room           # Text shown beside the room name.
Welcome message     = Welcome to Raps MX1  # Message shown to people when they join.

Require password    = 0                  # 0 lets guests in without a password. 1 asks for one.
Entry password      = 0                  # Leave at 0 when off. If enabled, replace 0 with a password.

[Room 1 / User levels]

Visibility access   = Admin              # Lowest role that can use /visible.
Redirect access     = Admin              # Lowest role that can use /redirect.
Disabled commands   =                    # List commands with commas, for example /redirect, /msg.

[Room 1 / Logging]

Log chat            = 0                  # 0 = off. 1 = save public messages and actions to Chat Logs.


[Room 1 / Moderation]

Block bad words     = 0                  # 0 = off. 1 = block matching chat, actions and private room messages.
Blocked words       = sex, fuck, fuck off, bastard, cunt, shithead, shit, bitch, asshole  # Edit this comma-separated list.

# --- ROOM 1 LOGINS ---

[Room 1 / Login cohost]

Role                = Cohost             # Role granted after /login cohost KEY.
Password            =                    # Blank disables this login. Use a private key to enable it.

[Room 1 / Login admin]

Role                = Admin              # Role granted after /login admin KEY.
Password            =                    # Blank disables this login. Use a private key to enable it.

[Room 1 / Login members]

Role                = Member             # Role granted after /login members KEY.
Password            =                    # Blank disables this login. Use a private key to enable it.

# Optional second room. Set Start room to 1 to open it.
[Room 2]

Channel name        = Raps MX2           # Name people see.
Room port           = 6259               # TCP port for this room. Use a different port for each room.
Capacity            = 600                # Maximum number of people, from 1 to 600.
Connections per IP  = 5                  # Per-room limit for guests on the same IP. 0 = unlimited.
Start room          = 0                  # 1 opens this room when RMXS starts. 0 keeps it closed.
Show channel        = 0           # Change to 1 to list this room if a public slot is available.
Topic               = Raps MX2           # Text shown beside the room name.
Welcome message     = Welcome to Raps MX2  # Message shown to people when they join.

Require password    = 0                  # 0 lets guests in without a password. 1 asks for one.
Entry password      = 0                  # Leave at 0 when off. If enabled, replace 0 with a password.

[Room 2 / User levels]

Visibility access   = Admin              # Choose Admin, Cohost or Host.
Redirect access     = Admin              # Choose Admin, Cohost or Host.
Disabled commands   =                    # List commands with commas, or leave blank.

[Room 2 / Logging]

Log chat            = 0                  # 0 = off. 1 = save public messages and actions to Chat Logs.


[Room 2 / Moderation]

Block bad words     = 0                  # 0 = off. 1 = block matching chat, actions and private room messages.
Blocked words       = sex, fuck, fuck off, bastard, cunt, shithead, shit, bitch, asshole  # Edit this comma-separated list.

# --- ROOM 2 LOGINS ---

[Room 2 / Login cohost]

Role                = Cohost             # Role granted after /login cohost KEY.
Password            =                    # Blank disables this login. Use a private key to enable it.

[Room 2 / Login admin]

Role                = Admin              # Role granted after /login admin KEY.
Password            =                    # Blank disables this login. Use a private key to enable it.

[Room 2 / Login members]

Role                = Member             # Role granted after /login members KEY.
Password            =                    # Blank disables this login. Use a private key to enable it.

# Extra accounts: copy a login section, give it a new name, and change its role.
# For a help or trivia bot add Bot = 1 to its account section.
# To keep a named password out of this file, set Key environment = VARIABLE_NAME.
#
# ROOM COMMANDS AND ACCESS
# User: /help (command list), /login (sign in), /logout (drop staff privileges).
# User: /me, /action, /emote (chat action), /msg, /message (private room message).
# Admin: /topic (room topic), /motd (welcome message), /opmsg (message staff).
# Admin: /kick, /ban, /unban, /listbans (moderate lower roles and manage bans).
# Admin: /setlogin (change a lower role's password until restart).
# Cohost: /op, /deop (temporary admin), /limit (capacity), /setpassword, /rempassword.
# Admin by default: /visible (public listing), /redirect (send guests to another room).
# Host: all commands. See COMMANDS.md for syntax and examples.

# Admin: /block NAME, /unblock NAME, /listblocks (saved username blocks).
# Edit each room's username list in the Block Lists folder while the server is stopped.

# Host: /reload saves room settings and reloads. If you edited this file, it loads your edits instead.
# Host: /save saves room settings. /load reads this file without saving first.

# User: /uptime (time the room and RMXS server have been running).

# User: /commands lists commands available to you. /channelname prints the full room address.
