mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-13 05:57:18 +00:00
14 lines
646 B
TypeScript
14 lines
646 B
TypeScript
import { guildCommand, GuildPluginData } from "knub";
|
|
import { AutomodPluginType } from "../types";
|
|
import { setAntiraidLevel } from "../functions/setAntiraidLevel";
|
|
import { sendSuccessMessage } from "../../../pluginUtils";
|
|
|
|
export const AntiraidClearCmd = guildCommand<AutomodPluginType>()({
|
|
trigger: ["antiraid clear", "antiraid reset", "antiraid none", "antiraid off","ar clear", "ar reset", "ar none", "ar off"],
|
|
permission: "can_set_antiraid",
|
|
|
|
async run({ pluginData, message }) {
|
|
await setAntiraidLevel(pluginData, null, message.author);
|
|
sendSuccessMessage(pluginData, message.channel, "Anti-raid turned **off**");
|
|
},
|
|
});
|