plugins-core/simplecommands/schema.json

49 lines
1.3 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/plugins-core/simplecommands.schema.json",
"title": "simplecommands",
"description": "Plugin simplecommands configuration",
"type": "object",
"properties": {
"prefix": {
"type": "object",
"description": "Per-room command prefix",
"patternProperties": {
".*": {
"type": "string"
}
}
},
"rateLimits": {
"type": "array",
"description": "Per-room command rate limits",
"items": {
"type": "object",
"properties": {
"rooms": {
"type": "array",
"description": "The rooms this applies to",
"items": {
"type": "string"
}
},
"cooldown": {
"type": "integer",
"description": "Rate limit cooldown time"
},
"perSecond": {
"type": "integer",
"description": "Commands sent per second"
}
},
"required": ["rooms", "cooldown", "perSecond"]
}
},
"channelMatching": {
"type": "boolean",
"description": "Only handle commands from the channels of the source protocol"
}
},
"required": ["prefix", "rateLimits", "channelMatching"]
}