mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-05 13:51:57 +02:00
upgrade clear , add : presetlog , changeall , best configuration of the ready.js and add anticrash module,
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user