Changed bot features to .hears and used regex to detect commands.
Main / build-and-push-docker-image (20.x) (push) Successful in 3m10s
Main / build-and-push-docker-image (20.x) (push) Successful in 3m10s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user