From c16c46ceeb77d5e6d4f3a05821893066491c2b88 Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Mon, 20 Oct 2025 20:06:21 -0400 Subject: [PATCH] Update .hears to .command --- src/bot/features/getGroupIDCommand.ts | 4 ++-- src/bot/features/isWKCGroup.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bot/features/getGroupIDCommand.ts b/src/bot/features/getGroupIDCommand.ts index 0c2d7a8..ee859c4 100644 --- a/src/bot/features/getGroupIDCommand.ts +++ b/src/bot/features/getGroupIDCommand.ts @@ -10,8 +10,8 @@ const feature = composer.chatType(["group", "supergroup"]); * What triggers this feature and adds to the log when it has been triggered. * The trigger is the command "/botInfo" */ -feature.hears( - "/getGroupID", +feature.command( + "getGroupID", logHandle("get-group-id"), async (ctx: Context) => { // Pulling the group IDs from the env variables. diff --git a/src/bot/features/isWKCGroup.ts b/src/bot/features/isWKCGroup.ts index 2be35f0..3da89ea 100644 --- a/src/bot/features/isWKCGroup.ts +++ b/src/bot/features/isWKCGroup.ts @@ -10,8 +10,8 @@ const feature = composer.chatType(["group", "supergroup"]); * What triggers this feature and adds to the log when it has been triggered. * The trigger is the command "/isWKCGroup" */ -feature.hears( - "/isWKCGroup", +feature.command( + "isWKCGroup", logHandle("is-WKC-group"), async (ctx: Context) => { // Pulling the group IDs from the env variables.