upgrade clear , add : presetlog , changeall , best configuration of the ready.js and add anticrash module,

This commit is contained in:
VALOU3336
2024-03-02 14:49:21 +01:00
parent 7a6eae8682
commit 44f5e84484
8 changed files with 217 additions and 56 deletions
+4 -1
View File
@@ -70,8 +70,10 @@ module.exports = (client) => {
client.on('messageCreate', async message => {
const botId = client.user.id;
if (message.channel.type === ChannelType.DM){
return
} else {
const guildId = message.guild.id;
if (message.channel.type === ChannelType.DM) return
let data = await new Promise((resolve, reject) => {
db.get('SELECT value FROM gestion WHERE id = ?', [botId], (err, row) => {
if (err) {
@@ -131,5 +133,6 @@ module.exports = (client) => {
message.reply('Une erreur est survenue lors de l\'exécution de cette commande.');
}
}
}
});
}