You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2b-bot-v2/src/commands/global/utility/Die.ts

23 lines
719 B
TypeScript

import {Command} from "../../../lib/Command";
import {CommandPermission} from "../../../lib/CommandPermission";
import {Message} from "discord.js";
import {CommandCategory} from "../../CommandCategory";
import { Help } from "./Help";
export class Die extends Command {
public static commandName = "die";
public static category = CommandCategory.UTILITY;
public static permission = CommandPermission.OWNER;
public static description = "Kills the bot.";
/**
* Replies with the current ping.
* @param msg
*/
public async invoke(msg: Message): Promise<void> {
await msg.channel.send("AAAAAARRRGGHHH...");
await msg.client.destroy();
process.exit(0);
}
}