RegexBot/docs/serverdef.md

34 lines
1.5 KiB
Markdown
Raw Normal View History

2017-10-16 03:50:35 +00:00
## Server definition
2018-01-13 20:02:48 +00:00
Server definitions are defined within the `servers` array. Each definition represents unique configuration values for a single server. It is possible to specify multiple servers, thus allowing for a single bot instance to be used in several servers at once.
Sample definition within [configuration](docs.html):
```
servers: [
{
"id": 100000000000,
"name": "Fun Server",
"autoresponses": {
// ...
}
},
{
"id": 100000000001,
"name": "Serious Business",
"automod": {
// ...
}
}
]
```
2017-10-16 03:50:35 +00:00
The following is a list of accepted members within a server definition.
2018-01-13 20:02:48 +00:00
* id (*integer*) - **Required.** A value containing the server's [unique ID](https://support.discordapp.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-).
* name (*string*) - Preferably a readable version of the server's name. Not used for anything other than internal logging.
2018-03-17 20:51:09 +00:00
* moderators (*[entity list](entitylist.html)*) - A list of entities to consider as moderators. Actions done by members of this list are able to execute *ModCommands* commands and are exempt from certain *AutoMod* rules. See their respective pages for more details.
* [AutoMod](automod.html) - See respective page.
* [AutoRespond](autorespond.html) - See respective page.
2018-03-21 21:06:32 +00:00
* [EntryAutoRole](entryautorole.html) - See respective page.
* [ModCommands](modcommands.html) - See respective page.
* [ModLogs](modlogs.html) - See respective page.
* [VoiceRoleSync](voicerolesync.html) - See respective page.