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,13 +1,12 @@
|
|||
import { guildPlugin } from "knub";
|
||||
import { CaseTypes } from "../../data/CaseTypes";
|
||||
import { Case } from "../../data/entities/Case";
|
||||
import { GuildArchives } from "../../data/GuildArchives";
|
||||
import { GuildCases } from "../../data/GuildCases";
|
||||
import { GuildLogs } from "../../data/GuildLogs";
|
||||
import { Case } from "../../data/entities/Case";
|
||||
import { mapToPublicFn } from "../../pluginUtils";
|
||||
import { trimPluginDescription } from "../../utils";
|
||||
import { InternalPosterPlugin } from "../InternalPoster/InternalPosterPlugin";
|
||||
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { createCase } from "./functions/createCase";
|
||||
import { createCaseNote } from "./functions/createCaseNote";
|
||||
import { getCaseEmbed } from "./functions/getCaseEmbed";
|
||||
|
@ -34,16 +33,8 @@ const defaultOptions = {
|
|||
},
|
||||
};
|
||||
|
||||
export const CasesPlugin = zeppelinGuildPlugin<CasesPluginType>()({
|
||||
export const CasesPlugin = guildPlugin<CasesPluginType>()({
|
||||
name: "cases",
|
||||
showInDocs: true,
|
||||
info: {
|
||||
prettyName: "Cases",
|
||||
description: trimPluginDescription(`
|
||||
This plugin contains basic configuration for cases created by other plugins
|
||||
`),
|
||||
configSchema: zCasesConfig,
|
||||
},
|
||||
|
||||
dependencies: async () => [TimeAndDatePlugin, InternalPosterPlugin, (await getLogsPlugin()).LogsPlugin],
|
||||
configParser: (input) => zCasesConfig.parse(input),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue