Skip to content

Commit a0db945

Browse files
committed
reafactor: removed Logger import, modified command inclusion lists, and added 'aran' and 'codeTime' commands.
1 parent ecd2f7d commit a0db945

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/service/command/generator.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Command } from "../../controller/command";
33
import { CmdMid } from "../../middleware";
44
import { botIsAdmin } from "../../middleware/isAdmin";
55
import { COMMANDS } from "../../helper";
6-
import { Logger } from "../../config/logger";
76
export 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

Comments
 (0)