Update .hears to .command

This commit is contained in:
2025-10-20 20:06:21 -04:00
parent 1f22a05944
commit c16c46ceeb
2 changed files with 4 additions and 4 deletions

View File

@@ -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.

View File

@@ -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.