Start command #13
@@ -8,7 +8,7 @@ const feature = composer.chatType("private");
|
||||
|
||||
feature.command("start", logHandle("command-start"), ctx => {
|
||||
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\\.](https://community.lucidcreations.media/) 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" }
|
||||
);
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { Context } from "#root/bot/context.js";
|
||||
import type { Config } from "#root/config.js";
|
||||
import type { Logger } from "#root/logger.js";
|
||||
import type { BotConfig } from "grammy";
|
||||
import { adminFeature } from "#root/bot/features/admin.js";
|
||||
// import { adminFeature } from "#root/bot/features/admin.js";
|
||||
import { languageFeature } from "#root/bot/features/language.js";
|
||||
import { unhandledFeature } from "#root/bot/features/unhandled.js";
|
||||
import { welcomeFeature } from "#root/bot/features/welcome.js";
|
||||
@@ -68,7 +68,7 @@ export function createBot(
|
||||
|
||||
// Handlers
|
||||
protectedBot.use(welcomeFeature);
|
||||
protectedBot.use(adminFeature);
|
||||
// protectedBot.use(adminFeature);
|
||||
if (isMultipleLocales) protectedBot.use(languageFeature);
|
||||
|
||||
// Commands
|
||||
|
||||
Reference in New Issue
Block a user