mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 13:55:03 +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,9 +1,8 @@
|
|||
import { PluginOptions } from "knub";
|
||||
import { PluginOptions, guildPlugin } from "knub";
|
||||
import z from "zod";
|
||||
import { Queue } from "../../Queue";
|
||||
import { Webhooks } from "../../data/Webhooks";
|
||||
import { mapToPublicFn } from "../../pluginUtils";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { editMessage } from "./functions/editMessage";
|
||||
import { sendMessage } from "./functions/sendMessage";
|
||||
import { InternalPosterPluginType } from "./types";
|
||||
|
@ -13,9 +12,8 @@ const defaultOptions: PluginOptions<InternalPosterPluginType> = {
|
|||
overrides: [],
|
||||
};
|
||||
|
||||
export const InternalPosterPlugin = zeppelinGuildPlugin<InternalPosterPluginType>()({
|
||||
export const InternalPosterPlugin = guildPlugin<InternalPosterPluginType>()({
|
||||
name: "internal_poster",
|
||||
showInDocs: false,
|
||||
|
||||
configParser: (input) => z.strictObject({}).parse(input),
|
||||
defaultOptions,
|
||||
|
|
6
backend/src/plugins/InternalPoster/info.ts
Normal file
6
backend/src/plugins/InternalPoster/info.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { ZeppelinPluginInfo } from "../../types";
|
||||
|
||||
export const internalPosterPluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Internal poster",
|
||||
showInDocs: false,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue