forked from pinks/eris
1
0
Fork 0

bot/helpCommand.ts hinzugefügt

New function to send the bot description as help text.
This commit is contained in:
Akiru 2024-01-28 11:55:18 +00:00
parent ed40a902ef
commit e45ad93229
1 changed files with 15 additions and 0 deletions

15
bot/helpCommand.ts Normal file
View File

@ -0,0 +1,15 @@
import { ErisContext } from "./mod.ts";
import { omitUndef } from "../utils/omitUndef.ts";
import { botDescription } from "./mod.ts"; // Import the description
export async function helpCommand(ctx: ErisContext) {
await ctx.reply(
botDescription, // Send the stored description
omitUndef({
reply_to_message_id: ctx.message?.message_id,
allow_sending_without_reply: true,
disable_web_page_preview: true, // Disable link previews
parse_mode: "Markdown"
}),
);
}