@@ -76,33 +76,33 @@ const clearance = async(BotsApp, client, isBlacklist) => {
76
76
`not executed in private Work Type.`
77
77
)
78
78
) ;
79
- var messageSent = await Users . getUser ( BotsApp . chatId ) ;
80
- if ( messageSent ) {
81
- console . log ( chalk . blueBright . bold ( "[INFO] Promo message had already been sent to " + BotsApp . chatId ) )
82
- return false ;
83
- }
84
- else {
85
- await client . sendMessage (
86
- BotsApp . chatId ,
87
- GENERAL . SUDO_PERMISSION . format ( { worktype : "private" , groupName : BotsApp . groupName ? BotsApp . groupName : "private chat" , commandName : BotsApp . commandName } ) ,
88
- MessageType . text ,
89
- {
90
- contextInfo : {
91
- stanzaId : BotsApp . chatId ,
92
- participant : BotsApp . sender ,
93
- quotedMessage : {
94
- conversation : BotsApp . body ,
95
- } ,
96
- } ,
97
- }
98
- ) ;
99
- await Users . addUser ( BotsApp . chatId )
100
- return false ;
101
- }
79
+ // var messageSent = await Users.getUser(BotsApp.chatId);
80
+ // if(messageSent){
81
+ // console.log(chalk.blueBright.bold("[INFO] Promo message had already been sent to " + BotsApp.chatId))
82
+ // return false;
83
+ // }
84
+ // else{
85
+ // await client.sendMessage(
86
+ // BotsApp.chatId,
87
+ // GENERAL.SUDO_PERMISSION.format({ worktype: "private", groupName: BotsApp.groupName ? BotsApp.groupName : "private chat", commandName: BotsApp.commandName }),
88
+ // MessageType.text,
89
+ // {
90
+ // contextInfo: {
91
+ // stanzaId: BotsApp.chatId,
92
+ // participant: BotsApp.sender,
93
+ // quotedMessage: {
94
+ // conversation: BotsApp.body,
95
+ // },
96
+ // },
97
+ // }
98
+ // );
99
+ // await Users.addUser(BotsApp.chatId)
100
+ // return false;
101
+ // }
102
102
}
103
103
} else {
104
104
return true ;
105
105
}
106
106
}
107
107
108
- module . exports = clearance ;
108
+ module . exports = clearance ;
0 commit comments