mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-08 03:27:20 +00:00
feat: update knub; use base Knub types for plugins
This commit is contained in:
parent
4597b83cda
commit
c2ae6d53d8
90 changed files with 713 additions and 607 deletions
|
@ -1,5 +1,5 @@
|
|||
import { GuildMember, Snowflake } from "discord.js";
|
||||
import { PluginOptions } from "knub";
|
||||
import { PluginOptions, guildPlugin } from "knub";
|
||||
import { GuildArchives } from "../../data/GuildArchives";
|
||||
import { GuildCases } from "../../data/GuildCases";
|
||||
import { GuildLogs } from "../../data/GuildLogs";
|
||||
|
@ -10,7 +10,6 @@ import { discardRegExpRunner, getRegExpRunner } from "../../regExpRunners";
|
|||
import { LogsPlugin } from "../Logs/LogsPlugin";
|
||||
import { ModActionsPlugin } from "../ModActions/ModActionsPlugin";
|
||||
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { AboutCmd } from "./commands/AboutCmd";
|
||||
import { AvatarCmd } from "./commands/AvatarCmd";
|
||||
import { BanSearchCmd } from "./commands/BanSearchCmd";
|
||||
|
@ -112,13 +111,8 @@ const defaultOptions: PluginOptions<UtilityPluginType> = {
|
|||
],
|
||||
};
|
||||
|
||||
export const UtilityPlugin = zeppelinGuildPlugin<UtilityPluginType>()({
|
||||
export const UtilityPlugin = guildPlugin<UtilityPluginType>()({
|
||||
name: "utility",
|
||||
showInDocs: true,
|
||||
info: {
|
||||
prettyName: "Utility",
|
||||
configSchema: zUtilityConfig,
|
||||
},
|
||||
|
||||
dependencies: () => [TimeAndDatePlugin, ModActionsPlugin, LogsPlugin],
|
||||
configParser: (input) => zUtilityConfig.parse(input),
|
||||
|
|
8
backend/src/plugins/Utility/info.ts
Normal file
8
backend/src/plugins/Utility/info.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types";
|
||||
import { zUtilityConfig } from "./types";
|
||||
|
||||
export const utilityPluginInfo: ZeppelinPluginInfo = {
|
||||
showInDocs: true,
|
||||
prettyName: "Utility",
|
||||
configSchema: zUtilityConfig,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue