mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
15 lines
498 B
TypeScript
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**`);
|
|
}
|
|
},
|
|
});
|