add healthcheck to bot
This commit is contained in:
parent
8c49c21228
commit
0fd98744db
1 changed files with 14 additions and 0 deletions
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