3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00
zeppelin/backend/src/plugins/Automod/commands/ViewAntiraidCmd.ts
metal 166b237541
new knub typings
Signed-off-by: GitHub <noreply@github.com>
2023-03-11 11:07:43 +00:00

15 lines
498 B
TypeScript

import { guildPluginMessageCommand } from "knub";
import { AutomodPluginType } from "../types";
export const ViewAntiraidCmd = guildPluginMessageCommand<AutomodPluginType>()({
trigger: "antiraid",
permission: "can_view_antiraid",
async run({ pluginData, message }) {
if (pluginData.state.cachedAntiraidLevel) {
message.channel.send(`Anti-raid is set to **${pluginData.state.cachedAntiraidLevel}**`);
} else {
message.channel.send(`Anti-raid is **off**`);
}
},
});