mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-13 21:35:02 +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,8 +1,7 @@
|
|||
import { PluginOptions } from "knub";
|
||||
import { PluginOptions, guildPlugin } from "knub";
|
||||
import { onGuildEvent } from "../../data/GuildEvents";
|
||||
import { GuildReminders } from "../../data/GuildReminders";
|
||||
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { RemindCmd } from "./commands/RemindCmd";
|
||||
import { RemindersCmd } from "./commands/RemindersCmd";
|
||||
import { RemindersDeleteCmd } from "./commands/RemindersDeleteCmd";
|
||||
|
@ -23,13 +22,8 @@ const defaultOptions: PluginOptions<RemindersPluginType> = {
|
|||
],
|
||||
};
|
||||
|
||||
export const RemindersPlugin = zeppelinGuildPlugin<RemindersPluginType>()({
|
||||
export const RemindersPlugin = guildPlugin<RemindersPluginType>()({
|
||||
name: "reminders",
|
||||
showInDocs: true,
|
||||
info: {
|
||||
prettyName: "Reminders",
|
||||
configSchema: zRemindersConfig,
|
||||
},
|
||||
|
||||
dependencies: () => [TimeAndDatePlugin],
|
||||
configParser: (input) => zRemindersConfig.parse(input),
|
||||
|
|
8
backend/src/plugins/Reminders/info.ts
Normal file
8
backend/src/plugins/Reminders/info.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types";
|
||||
import { zRemindersConfig } from "./types";
|
||||
|
||||
export const remindersPluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Reminders",
|
||||
configSchema: zRemindersConfig,
|
||||
showInDocs: true,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue