diff --git a/src/bot/features/botInfoCommand.ts b/src/bot/features/botInfoCommand.ts index 137235f..77a2b6e 100644 --- a/src/bot/features/botInfoCommand.ts +++ b/src/bot/features/botInfoCommand.ts @@ -10,8 +10,8 @@ const feature = composer.chatType(["private", "group", "supergroup"]); * What triggers this feature and adds to the log when it has been triggered. * The trigger is the command "/botInfo" */ -feature.command( - "botInfo", +feature.hears( + /^\/botInfo/, logHandle("bot-info-command"), async (ctx: Context) => { // Checks if the context includes a message property. diff --git a/src/bot/features/helpCommand.ts b/src/bot/features/helpCommand.ts index a769110..a224c6c 100644 --- a/src/bot/features/helpCommand.ts +++ b/src/bot/features/helpCommand.ts @@ -10,7 +10,7 @@ const feature = composer.chatType(["group", "supergroup", "private"]); * What triggers this feature and adds to the log when it has been triggered. * The trigger is the command "/help" */ -feature.command("help", logHandle("help"), async (ctx: Context) => { +feature.hears(/^\/help/, logHandle("help"), async (ctx: Context) => { const GROUP_IDS = process.env.GROUP_IDS ? process.env.GROUP_IDS.split(",") : undefined;