import BasePlugin from './base-plugin.js';
export default class ChatCommands extends BasePlugin {
static get description() {
return (
'The ChatCommands
plugin can be configured to make chat commands that broadcast or warn the ' +
'caller with present messages.'
);
}
static get defaultEnabled() {
return true;
}
static get optionsSpecification() {
return {
commands: {
required: false,
description:
'An array of objects containing the following properties: ' +
'
command
- The command that initiates the message.type
- Either warn
or broadcast
.response
- The message to respond with.ignoreChats
- A list of chats to ignore the commands in. Use this to limit it to admins.