@@ -3,7 +3,6 @@ import { Command } from "../../controller/command";
33import { CmdMid } from "../../middleware" ;
44import { botIsAdmin } from "../../middleware/isAdmin" ;
55import { COMMANDS } from "../../helper" ;
6- import { Logger } from "../../config/logger" ;
76export class GenerateCommand {
87 private bot : Bot ;
98 constructor ( bot : Bot ) {
@@ -48,11 +47,11 @@ export class GenerateCommand {
4847 */
4948 generate ( ) {
5049 for ( const command of COMMANDS ) {
51- if ( [ "start" , "help" , "date" , "future" ] . includes ( command ) ) {
50+ if ( [ "start" , "help" , "date" , "future" , ] . includes ( command ) ) {
5251 this . create ( command ) ;
53- } else if ( [ "rules" , "shahin" ] . includes ( command ) ) {
52+ } else if ( [ "rules" , "shahin" , "aran" ] . includes ( command ) ) {
5453 this . create ( command , [ CmdMid . isValidChatType ] ) ;
55- } else if ( [ "lock" , "blacklist" , "abl" , "unLock" , "rmbl" , "approvedList" ] . includes ( command ) ) {
54+ } else if ( [ "lock" , "blacklist" , "abl" , "unLock" , "rmbl" , "approvedList" , "codeTime" ] . includes ( command ) ) {
5655 this . create ( command , [ CmdMid . isValidChatType , CmdMid . AdminStatus ] ) ;
5756 } else if ( [ "purge" ] . includes ( command ) ) {
5857 this . create ( command , [ CmdMid . isValidChatType , CmdMid . isReplied , CmdMid . AdminStatus ] ) ;
@@ -65,8 +64,8 @@ export class GenerateCommand {
6564 ] ) ;
6665 } else {
6766 this . create ( command , [
68- CmdMid . userInGroup ,
6967 CmdMid . isValidChatType ,
68+ CmdMid . userInGroup ,
7069 CmdMid . isReplied ,
7170 CmdMid . AdminStatus ,
7271 CmdMid . adminCheckForRepliedUser ,
0 commit comments