2020-10-01 01:43:38 +03:00
|
|
|
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
2020-07-22 22:33:10 +02:00
|
|
|
import { ChannelArchiverPluginType } from "./types";
|
|
|
|
import { ArchiveChannelCmd } from "./commands/ArchiveChannelCmd";
|
2020-07-30 20:10:50 +03:00
|
|
|
import * as t from "io-ts";
|
2020-08-19 00:19:12 +03:00
|
|
|
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
|
2020-07-22 22:33:10 +02:00
|
|
|
|
2021-05-23 14:35:16 +03:00
|
|
|
export const ChannelArchiverPlugin = zeppelinGuildPlugin<ChannelArchiverPluginType>()({
|
|
|
|
name: "channel_archiver",
|
2020-07-22 22:33:10 +02:00
|
|
|
showInDocs: false,
|
2020-08-19 00:19:12 +03:00
|
|
|
|
|
|
|
dependencies: [TimeAndDatePlugin],
|
2020-07-30 20:10:50 +03:00
|
|
|
configSchema: t.type({}),
|
2020-07-22 22:33:10 +02:00
|
|
|
|
|
|
|
// prettier-ignore
|
|
|
|
commands: [
|
|
|
|
ArchiveChannelCmd,
|
2021-05-23 17:13:11 +03:00
|
|
|
]
|
2020-07-22 22:33:10 +02:00
|
|
|
});
|