Fix welcome command

This commit is contained in:
Lucid Kobold
2025-02-19 18:34:52 -05:00
parent 03b48c0513
commit eebbb67705
2 changed files with 4 additions and 5 deletions

View File

@@ -1,15 +1,14 @@
import { chatAction } from "@grammyjs/auto-chat-action"; import { chatAction } from "@grammyjs/auto-chat-action";
import { Composer } from "grammy"; import { Composer } from "grammy";
import type { Context } from "#root/bot/context.js"; import type { Context } from "#root/bot/context.js";
import { isAdmin } from "#root/bot/filters/is-admin.js"; // import { isAdmin } from "#root/bot/filters/is-admin.js";
import { setCommandsHandler } from "#root/bot/handlers/commands/setcommands.js"; import { setCommandsHandler } from "#root/bot/handlers/commands/setcommands.js";
import { logHandle } from "#root/bot/helpers/logging.js"; import { logHandle } from "#root/bot/helpers/logging.js";
const composer = new Composer<Context>(); const composer = new Composer<Context>();
const feature = composer const feature = composer.chatType("private");
.chatType("private") // .filter(ctx => isAdmin(ctx.config.botAdmins)(ctx));
.filter(ctx => isAdmin(ctx.config.botAdmins)(ctx));
feature.command( feature.command(
"setcommands", "setcommands",

View File

@@ -8,7 +8,7 @@ const feature = composer.chatType("private");
feature.command("start", logHandle("command-start"), ctx => { feature.command("start", logHandle("command-start"), ctx => {
return ctx.reply( return ctx.reply(
"Welcome! I am a bot created by Lucid for Lucid Creations media groups. I am designed to delete any Twitter/X links and reformatting services within groups. By default I only work with whitelisted group IDs. You can fork me from this link: https://github\\.com/lucid\\-creations\\-media/no\\-twitter\\-bot and deploy me for use in your own groups!", `Welcome\\! I am a bot created by Lucid for Lucid Creations media groups\\. I am designed to delete any Twitter/X links and reformatting services within groups\\. By default I only work with whitelisted group IDs\\. You can fork me from this link: https://github\\.com/lucid\\-creations\\-media/no\\-twitter\\-bot and deploy me for use in your own groups\\!`,
{ parse_mode: "MarkdownV2" } { parse_mode: "MarkdownV2" }
); );
}); });