3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-14 13:57:19 +00:00

ModStats command with basic information

This commit is contained in:
Dark 2020-08-29 04:05:40 +02:00
parent dda4313b26
commit 1c1885c49b
5 changed files with 123 additions and 0 deletions

View file

@ -14,6 +14,7 @@ import { trimPluginDescription } from "../../utils";
import { getCaseSummary } from "./functions/getCaseSummary";
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
import { mapToPublicFn } from "../../pluginUtils";
import { ModStatsCmd } from "./commands/ModStatsCmd";
const defaultOptions = {
config: {
@ -23,7 +24,16 @@ const defaultOptions = {
relative_time_cutoff: "7d",
case_colors: null,
case_icons: null,
can_modstats: false,
},
overrides: [
{
level: ">=100",
config: {
can_modstats: true,
},
},
],
};
export const CasesPlugin = zeppelinGuildPlugin<CasesPluginType>()("cases", {
@ -35,6 +45,8 @@ export const CasesPlugin = zeppelinGuildPlugin<CasesPluginType>()("cases", {
`),
},
commands: [ModStatsCmd],
dependencies: [TimeAndDatePlugin],
configSchema: ConfigSchema,
defaultOptions,