Skip to content

Commit 0edd109

Browse files
disable private acknowledgement
1 parent 4e7926e commit 0edd109

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

core/clearance.js

+24-24
Original file line numberDiff line numberDiff line change
@@ -76,33 +76,33 @@ const clearance = async(BotsApp, client, isBlacklist) => {
7676
`not executed in private Work Type.`
7777
)
7878
);
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+
// }
102102
}
103103
}else{
104104
return true;
105105
}
106106
}
107107

108-
module.exports = clearance;
108+
module.exports = clearance;

0 commit comments

Comments
 (0)