3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-16 22:55:03 +00:00

fix: add configSchema to every plugin

This commit is contained in:
Ruby 2024-05-10 14:28:45 +02:00
parent 0d1d9d08f6
commit 3681e1e168
6 changed files with 12 additions and 0 deletions

View file

@ -1,8 +1,10 @@
import { ZeppelinPluginInfo } from "../../types";
import { zAutoDeleteConfig } from "./types";
export const autoDeletePluginInfo: ZeppelinPluginInfo = {
showInDocs: true,
prettyName: "Auto-delete",
description: "Allows Zeppelin to auto-delete messages from a channel after a delay",
configurationGuide: "Maximum deletion delay is currently 5 minutes",
configSchema: zAutoDeleteConfig,
};

View file

@ -1,5 +1,6 @@
import { ZeppelinPluginInfo } from "../../types";
import { trimPluginDescription } from "../../utils";
import { zAutoReactionsConfig } from "./types";
export const autoReactionsInfo: ZeppelinPluginInfo = {
showInDocs: true,
@ -7,4 +8,5 @@ export const autoReactionsInfo: ZeppelinPluginInfo = {
description: trimPluginDescription(`
Allows setting up automatic reactions to all new messages on a channel
`),
configSchema: zAutoReactionsConfig,
};

View file

@ -1,5 +1,6 @@
import { ZeppelinPluginInfo } from "../../types";
import { trimPluginDescription } from "../../utils";
import { zAutomodConfig } from "./types";
export const automodPluginInfo: ZeppelinPluginInfo = {
showInDocs: true,
@ -100,4 +101,5 @@ export const automodPluginInfo: ZeppelinPluginInfo = {
{matchSummary}
~~~
`),
configSchema: zAutomodConfig,
};

View file

@ -1,5 +1,6 @@
import { ZeppelinPluginInfo } from "../../types";
import { trimPluginDescription } from "../../utils";
import { zCasesConfig } from "./types";
export const casesPluginInfo: ZeppelinPluginInfo = {
showInDocs: true,
@ -7,4 +8,5 @@ export const casesPluginInfo: ZeppelinPluginInfo = {
description: trimPluginDescription(`
This plugin contains basic configuration for cases created by other plugins
`),
configSchema: zCasesConfig,
};

View file

@ -1,5 +1,6 @@
import { ZeppelinPluginInfo } from "../../types";
import { trimPluginDescription } from "../../utils";
import { zCensorConfig } from "./types";
export const censorPluginInfo: ZeppelinPluginInfo = {
showInDocs: true,
@ -9,4 +10,5 @@ export const censorPluginInfo: ZeppelinPluginInfo = {
Censor words, tokens, links, regex, etc.
For more advanced filtering, check out the Automod plugin!
`),
configSchema: zCensorConfig,
};

View file

@ -1,5 +1,6 @@
import { ZeppelinPluginInfo } from "../../types";
import { trimPluginDescription } from "../../utils";
import { zCompanionChannelsConfig } from "./types";
export const companionChannelsPluginInfo: ZeppelinPluginInfo = {
showInDocs: true,
@ -9,4 +10,5 @@ export const companionChannelsPluginInfo: ZeppelinPluginInfo = {
Once set up, any time a user joins one of the specified voice channels,
they'll get channel permissions applied to them for the text channels.
`),
configSchema: zCompanionChannelsConfig,
};