mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-11 03:14:17 +02:00
Update ready
This commit is contained in:
+5
-7
@@ -7,7 +7,7 @@ module.exports = {
|
||||
name: Events.ClientReady,
|
||||
async execute(client) {
|
||||
console.log(`[READY] ${client.user.tag} est prêt ||| ${client.guilds.cache.size.toLocaleString('fr-FR')} serveurs | ${client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0).toLocaleString('fr-FR')} utilisateurs\n`.green);
|
||||
loggT(`[READY] ${client.user.tag} est prêt ||| ${client.guilds.cache.size} serveurs | ${client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)} utilisateurs\n`)
|
||||
loggT(`[READY] ${client.user.tag} est prêt ||| ${client.guilds.cache.size} serveurs | ${client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)} utilisateurs\n`);
|
||||
|
||||
client.user.setPresence({
|
||||
activities: [{
|
||||
@@ -60,7 +60,7 @@ module.exports = {
|
||||
});
|
||||
|
||||
if (team.location == 0) return
|
||||
db.run(`UPDATE teams SET bank = bank + ? WHERE guildId = ? AND userId = ?`, [team.location, message.guild.id, message.author.id]);
|
||||
db.run(`UPDATE teams SET bank = bank + ?`, [team.location]);
|
||||
}, 1 * 60 * 1000)
|
||||
|
||||
//AntiCrash
|
||||
@@ -68,7 +68,7 @@ module.exports = {
|
||||
if (error.code == "10064") return
|
||||
if (error.code == "10008") return
|
||||
console.log(' [antiCrash] :: Unhandled Rejection/Catch'.red);
|
||||
console.log(error);
|
||||
console.log(`${error}`.grey);
|
||||
loggE(error)
|
||||
});
|
||||
|
||||
@@ -76,7 +76,7 @@ module.exports = {
|
||||
if (error.code == "10064") return
|
||||
if (error.code == "10008") return
|
||||
console.log(' [antiCrash] :: Uncaught Exception/Catch'.red);
|
||||
console.log(error);
|
||||
console.log(`${error}`.grey);
|
||||
console.log('Information supplémentaire:', origin);
|
||||
loggE(error)
|
||||
});
|
||||
@@ -85,7 +85,7 @@ module.exports = {
|
||||
if (error.code == "10064") return
|
||||
if (error.code == "10008") return
|
||||
console.log(' [antiCrash] :: Uncaught Exception Monitor/Catch'.red);
|
||||
console.log(error);
|
||||
console.log(`${error}`.grey);
|
||||
console.log('Information supplémentaire:', origin);
|
||||
loggE(error)
|
||||
});
|
||||
@@ -95,7 +95,6 @@ module.exports = {
|
||||
if (error.code == "10008") return
|
||||
console.log(' [antiCrash] :: Before Exit'.red);
|
||||
console.log('Code de sortie:', code);
|
||||
loggE(error)
|
||||
});
|
||||
|
||||
process.on('exit', (code) => {
|
||||
@@ -103,7 +102,6 @@ module.exports = {
|
||||
if (error.code == "10008") return
|
||||
console.log(' [antiCrash] :: Exit'.red);
|
||||
console.log('Code de sortie:', code);
|
||||
loggE(error)
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user