mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 22:05:01 +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 { GuildChannel, GuildMember, User } from "discord.js";
|
||||
import { guildPluginMessageCommand, parseSignature } from "knub";
|
||||
import { guildPlugin, guildPluginMessageCommand, parseSignature } from "knub";
|
||||
import { TSignature } from "knub-command-manager";
|
||||
import { commandTypes } from "../../commandTypes";
|
||||
import { TemplateSafeValueContainer, createTypedTemplateSafeValueContainer } from "../../templateFormatter";
|
||||
|
@ -12,7 +12,6 @@ import {
|
|||
userToTemplateSafeUser,
|
||||
} from "../../utils/templateSafeObjects";
|
||||
import { LogsPlugin } from "../Logs/LogsPlugin";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { runEvent } from "./functions/runEvent";
|
||||
import { CustomEventsPluginType, zCustomEventsConfig } from "./types";
|
||||
|
||||
|
@ -22,9 +21,8 @@ const defaultOptions = {
|
|||
},
|
||||
};
|
||||
|
||||
export const CustomEventsPlugin = zeppelinGuildPlugin<CustomEventsPluginType>()({
|
||||
export const CustomEventsPlugin = guildPlugin<CustomEventsPluginType>()({
|
||||
name: "custom_events",
|
||||
showInDocs: false,
|
||||
|
||||
dependencies: () => [LogsPlugin],
|
||||
configParser: (input) => zCustomEventsConfig.parse(input),
|
||||
|
|
6
backend/src/plugins/CustomEvents/info.ts
Normal file
6
backend/src/plugins/CustomEvents/info.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { ZeppelinPluginInfo } from "../../types";
|
||||
|
||||
export const customEventsPluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Custom events",
|
||||
showInDocs: false,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue