mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
add healthcheck to bot
This commit is contained in:
parent
8c49c21228
commit
0fd98744db
14
bot/src/bot/commands/misc/healthcheck.ts
Normal file
14
bot/src/bot/commands/misc/healthcheck.ts
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import CommandCategory from "../../../struct/commands/CommandCategory";
|
||||||
|
import SimpleCommand from "../../../struct/commands/SimpleCommand";
|
||||||
|
import MessageCommandContext from "../../../struct/MessageCommandContext";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'healthcheck',
|
||||||
|
aliases: null,
|
||||||
|
description: 'Health check',
|
||||||
|
category: CommandCategory.Misc,
|
||||||
|
run: async (message: MessageCommandContext, args: string[]) => {
|
||||||
|
const msg = await message.reply('Health check success: ' + args.join(' '));
|
||||||
|
setTimeout(() => msg?.delete().catch(e => console.error), 5000);
|
||||||
|
}
|
||||||
|
} as SimpleCommand;
|
Loading…
Reference in a new issue