add healthcheck to bot

This commit is contained in:
Lea 2023-04-06 12:24:39 +02:00
parent 8c49c21228
commit 0fd98744db
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View 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;