mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 19:17:19 +00:00
22 lines
703 B
TypeScript
22 lines
703 B
TypeScript
import { guildPlugin } from "knub";
|
|
import z from "zod";
|
|
import { CommonPlugin } from "../Common/CommonPlugin.js";
|
|
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin.js";
|
|
import { ArchiveChannelCmd } from "./commands/ArchiveChannelCmd.js";
|
|
import { ChannelArchiverPluginType } from "./types.js";
|
|
|
|
export const ChannelArchiverPlugin = guildPlugin<ChannelArchiverPluginType>()({
|
|
name: "channel_archiver",
|
|
|
|
dependencies: () => [TimeAndDatePlugin],
|
|
configParser: (input) => z.strictObject({}).parse(input),
|
|
|
|
// prettier-ignore
|
|
messageCommands: [
|
|
ArchiveChannelCmd,
|
|
],
|
|
|
|
beforeStart(pluginData) {
|
|
pluginData.state.common = pluginData.getPlugin(CommonPlugin);
|
|
},
|
|
});
|