mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20: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,6 +1,5 @@
|
|||
import { PluginOptions } from "knub";
|
||||
import { PluginOptions, guildPlugin } from "knub";
|
||||
import { GuildSavedMessages } from "../../data/GuildSavedMessages";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { SaveMessagesToDBCmd } from "./commands/SaveMessagesToDB";
|
||||
import { SavePinsToDBCmd } from "./commands/SavePinsToDB";
|
||||
import { MessageCreateEvt, MessageDeleteBulkEvt, MessageDeleteEvt, MessageUpdateEvt } from "./events/SaveMessagesEvts";
|
||||
|
@ -20,9 +19,8 @@ const defaultOptions: PluginOptions<MessageSaverPluginType> = {
|
|||
],
|
||||
};
|
||||
|
||||
export const MessageSaverPlugin = zeppelinGuildPlugin<MessageSaverPluginType>()({
|
||||
export const MessageSaverPlugin = guildPlugin<MessageSaverPluginType>()({
|
||||
name: "message_saver",
|
||||
showInDocs: false,
|
||||
|
||||
configParser: (input) => zMessageSaverConfig.parse(input),
|
||||
defaultOptions,
|
||||
|
|
6
backend/src/plugins/MessageSaver/info.ts
Normal file
6
backend/src/plugins/MessageSaver/info.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { ZeppelinPluginInfo } from "../../types";
|
||||
|
||||
export const messageSaverPluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Message saver",
|
||||
showInDocs: false,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue