Update .hears to .command
This commit is contained in:
@@ -10,8 +10,8 @@ const feature = composer.chatType(["group", "supergroup"]);
|
|||||||
* What triggers this feature and adds to the log when it has been triggered.
|
* What triggers this feature and adds to the log when it has been triggered.
|
||||||
* The trigger is the command "/botInfo"
|
* The trigger is the command "/botInfo"
|
||||||
*/
|
*/
|
||||||
feature.hears(
|
feature.command(
|
||||||
"/getGroupID",
|
"getGroupID",
|
||||||
logHandle("get-group-id"),
|
logHandle("get-group-id"),
|
||||||
async (ctx: Context) => {
|
async (ctx: Context) => {
|
||||||
// Pulling the group IDs from the env variables.
|
// Pulling the group IDs from the env variables.
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ const feature = composer.chatType(["group", "supergroup"]);
|
|||||||
* What triggers this feature and adds to the log when it has been triggered.
|
* What triggers this feature and adds to the log when it has been triggered.
|
||||||
* The trigger is the command "/isWKCGroup"
|
* The trigger is the command "/isWKCGroup"
|
||||||
*/
|
*/
|
||||||
feature.hears(
|
feature.command(
|
||||||
"/isWKCGroup",
|
"isWKCGroup",
|
||||||
logHandle("is-WKC-group"),
|
logHandle("is-WKC-group"),
|
||||||
async (ctx: Context) => {
|
async (ctx: Context) => {
|
||||||
// Pulling the group IDs from the env variables.
|
// Pulling the group IDs from the env variables.
|
||||||
|
|||||||
Reference in New Issue
Block a user