mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 17:34:25 -05:00
Rebuild config and readme
This commit is contained in:
parent
822a17ac30
commit
9b6d890df8
38
README.md
38
README.md
@ -207,6 +207,25 @@ The `auto-tk-warn` plugin will automatically warn players in game to apologise f
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
### chat-commands
|
||||
The `chat-command` plugin will automatically broadcast messages when a player types the corresponding command into any chat.
|
||||
|
||||
##### Options
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Option</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Default</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>commands</td><td>Array of command configs</td><td>false</td><td>[{"command":"!squadjs","type":"warn","response":"This server is powered by SquadJS.","ignoreChats":[]}]</td><td>See the default value as an example of how to configure commands. Type can either be `warn` or `broadcast`</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
### discord-admin-broadcast
|
||||
The `discord-admin-broadcast` plugin will send a copy of admin broadcasts made in game to a Discord channel.
|
||||
|
||||
@ -538,25 +557,6 @@ The `team-randomizer` plugin can be used to randomize teams. It's great for dest
|
||||
<tr><td>command</td><td>String</td><td>false</td><td>!randomize</td><td>The command used to randomize the teams.</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
### chat-commands
|
||||
The `chat-command` plugin will automatically broadcast messages when a player types the corresponding command into any chat.
|
||||
|
||||
##### Options
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Option</th>
|
||||
<th>Type</th>
|
||||
<th>Required</th>
|
||||
<th>Default</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>commands</td><td>Array of command configs</td><td>false</td><td>[{"command":"!squadjs","type":"warn","response":"This server is powered by SquadJS.","ignoreChats":[]}]</td><td>See the default value as an example of how to configure commands. Type can either be `warn` or `broadcast`</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
## Creating Your Own Plugins
|
||||
To create your own plugin you need a basic knowledge of JavaScript.
|
||||
|
24
config.json
24
config.json
@ -66,6 +66,18 @@
|
||||
"enabled": true,
|
||||
"message": "Please apologise for ALL TKs in ALL chat!"
|
||||
},
|
||||
{
|
||||
"plugin": "chat-commands",
|
||||
"enabled": false,
|
||||
"commands": [
|
||||
{
|
||||
"command": "!squadjs",
|
||||
"type": "warn",
|
||||
"response": "This server is powered by SquadJS.",
|
||||
"ignoreChats": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"plugin": "discord-admin-broadcast",
|
||||
"enabled": true,
|
||||
@ -174,18 +186,6 @@
|
||||
"plugin": "team-randomizer",
|
||||
"enabled": true,
|
||||
"command": "!randomize"
|
||||
},
|
||||
{
|
||||
"plugin": "chat-commands",
|
||||
"enabled": false,
|
||||
"commands": [
|
||||
{
|
||||
"command": "!squadjs",
|
||||
"type": "warn",
|
||||
"response": "This server is powered by SquadJS.",
|
||||
"ignoreChats": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user