feat: add missing info.configSchemas
This commit is contained in:
parent
db52c61df4
commit
3b0a0b311d
19 changed files with 46 additions and 0 deletions
|
@ -1,8 +1,10 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { zAutoDeleteConfig } from "./types.js";
|
||||
|
||||
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,
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { trimPluginDescription } from "../../utils.js";
|
||||
import { zAutoReactionsConfig } from "./types.js";
|
||||
|
||||
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,
|
||||
};
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { trimPluginDescription } from "../../utils.js";
|
||||
import { zAutomodConfig } from "./types.js";
|
||||
|
||||
export const automodPluginInfo: ZeppelinPluginInfo = {
|
||||
showInDocs: true,
|
||||
prettyName: "Automod",
|
||||
configSchema: zAutomodConfig,
|
||||
description: trimPluginDescription(`
|
||||
Allows specifying automated actions in response to triggers. Example use cases include word filtering and spam prevention.
|
||||
`),
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { trimPluginDescription } from "../../utils.js";
|
||||
import { zCasesConfig } from "./types.js";
|
||||
|
||||
export const casesPluginInfo: ZeppelinPluginInfo = {
|
||||
showInDocs: true,
|
||||
prettyName: "Cases",
|
||||
configSchema: zCasesConfig,
|
||||
description: trimPluginDescription(`
|
||||
This plugin contains basic configuration for cases created by other plugins
|
||||
`),
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { trimPluginDescription } from "../../utils.js";
|
||||
import { zCensorConfig } from "./types.js";
|
||||
|
||||
export const censorPluginInfo: ZeppelinPluginInfo = {
|
||||
showInDocs: true,
|
||||
legacy: true,
|
||||
prettyName: "Censor",
|
||||
configSchema: zCensorConfig,
|
||||
description: trimPluginDescription(`
|
||||
Censor words, tokens, links, regex, etc.
|
||||
For more advanced filtering, check out the Automod plugin!
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { trimPluginDescription } from "../../utils.js";
|
||||
import { zCompanionChannelsConfig } from "./types.js";
|
||||
|
||||
export const companionChannelsPluginInfo: ZeppelinPluginInfo = {
|
||||
showInDocs: true,
|
||||
prettyName: "Companion channels",
|
||||
configSchema: zCompanionChannelsConfig,
|
||||
description: trimPluginDescription(`
|
||||
Set up 'companion channels' between text and voice channels.
|
||||
Once set up, any time a user joins one of the specified voice channels,
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { zContextMenusConfig } from "./types.js";
|
||||
|
||||
export const contextMenuPluginInfo: ZeppelinPluginInfo = {
|
||||
showInDocs: false,
|
||||
prettyName: "Context menu",
|
||||
configSchema: zContextMenusConfig,
|
||||
};
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { zCustomEventsConfig } from "./types.js";
|
||||
|
||||
export const customEventsPluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Custom events",
|
||||
showInDocs: false,
|
||||
configSchema: zCustomEventsConfig,
|
||||
};
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { zGuildConfigReloaderPlugin } from "./types.js";
|
||||
|
||||
export const guildConfigReloaderPluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Guild config reloader",
|
||||
showInDocs: false,
|
||||
configSchema: zGuildConfigReloaderPlugin,
|
||||
};
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
import { BasePluginType } from "knub";
|
||||
import { Configs } from "../../data/Configs.js";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
import { z } from "zod";
|
||||
|
||||
export const zGuildConfigReloaderPlugin = z.strictObject({});
|
||||
|
||||
export interface GuildConfigReloaderPluginType extends BasePluginType {
|
||||
config: z.infer<typeof zGuildConfigReloaderPlugin>;
|
||||
state: {
|
||||
guildConfigs: Configs;
|
||||
unloaded: boolean;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { zGuildInfoSaverConfig } from "./types.js";
|
||||
|
||||
export const guildInfoSaverPluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Guild info saver",
|
||||
showInDocs: false,
|
||||
configSchema: zGuildInfoSaverConfig,
|
||||
};
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
import { BasePluginType } from "knub";
|
||||
import { z } from "zod";
|
||||
|
||||
export const zGuildInfoSaverConfig = z.strictObject({});
|
||||
|
||||
export interface GuildInfoSaverPluginType extends BasePluginType {
|
||||
config: z.infer<typeof zGuildInfoSaverConfig>;
|
||||
state: {
|
||||
updateInterval: NodeJS.Timeout;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { zGuildMemberCacheConfig } from "./types.js";
|
||||
|
||||
export const guildMemberCachePluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Guild member cache",
|
||||
showInDocs: false,
|
||||
configSchema: zGuildMemberCacheConfig,
|
||||
};
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
import { BasePluginType } from "knub";
|
||||
import { GuildMemberCache } from "../../data/GuildMemberCache.js";
|
||||
import { z } from "zod";
|
||||
|
||||
export const zGuildMemberCacheConfig = z.strictObject({});
|
||||
|
||||
export interface GuildMemberCachePluginType extends BasePluginType {
|
||||
config: z.infer<typeof zGuildMemberCacheConfig>;
|
||||
state: {
|
||||
memberCache: GuildMemberCache;
|
||||
saveInterval: NodeJS.Timeout;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { zInternalPosterConfig } from "./types.js";
|
||||
|
||||
export const internalPosterPluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Internal poster",
|
||||
showInDocs: false,
|
||||
configSchema: zInternalPosterConfig,
|
||||
};
|
||||
|
|
|
@ -2,8 +2,12 @@ import { WebhookClient } from "discord.js";
|
|||
import { BasePluginType } from "knub";
|
||||
import { Queue } from "../../Queue.js";
|
||||
import { Webhooks } from "../../data/Webhooks.js";
|
||||
import { z } from "zod";
|
||||
|
||||
export const zInternalPosterConfig = z.strictObject({});
|
||||
|
||||
export interface InternalPosterPluginType extends BasePluginType {
|
||||
config: z.infer<typeof zInternalPosterConfig>;
|
||||
state: {
|
||||
queue: Queue;
|
||||
webhooks: Webhooks;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { zMessageSaverConfig } from "./types.js";
|
||||
|
||||
export const messageSaverPluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Message saver",
|
||||
showInDocs: false,
|
||||
configSchema: zMessageSaverConfig,
|
||||
};
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { zRoleManagerConfig } from "./types.js";
|
||||
|
||||
export const roleManagerPluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Role manager",
|
||||
showInDocs: false,
|
||||
configSchema: zRoleManagerConfig,
|
||||
};
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { zUsernameSaverConfig } from "./types.js";
|
||||
|
||||
export const usernameSaverPluginInfo: ZeppelinPluginInfo = {
|
||||
showInDocs: false,
|
||||
prettyName: "Username saver",
|
||||
configSchema: zUsernameSaverConfig,
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue