mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-15 00:02:43 +02:00
Delete console.log in ready
This commit is contained in:
@@ -15,7 +15,6 @@ module.exports = {
|
||||
`[READY] ${client.user.tag} est prêt ||| ${client.guilds.cache.size} serveurs | ${client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)} utilisateurs`,
|
||||
);
|
||||
|
||||
console.log("setPresence : ...");
|
||||
client.user.setPresence({
|
||||
activities: [
|
||||
{
|
||||
@@ -26,10 +25,8 @@ module.exports = {
|
||||
],
|
||||
status: "online",
|
||||
});
|
||||
console.log("setPresence : OK");
|
||||
|
||||
client.guilds.cache.forEach((guild) => {
|
||||
console.log("BD update : ...");
|
||||
db.run(
|
||||
`INSERT OR IGNORE INTO config (guildId, name, value) VALUES (?, ?, ?)`,
|
||||
[guild.id, "prefix", "&"],
|
||||
@@ -40,12 +37,10 @@ module.exports = {
|
||||
member.id,
|
||||
]);
|
||||
});
|
||||
console.log("BD update : OK");
|
||||
});
|
||||
|
||||
setInterval(
|
||||
async () => {
|
||||
console.log("Recompense vocal : ...");
|
||||
client.guilds.cache.forEach((guild) => {
|
||||
guild.members.cache
|
||||
.filter((member) => member.voice.channel)
|
||||
@@ -95,14 +90,12 @@ module.exports = {
|
||||
);
|
||||
});
|
||||
});
|
||||
console.log("Recompense vocal : OK");
|
||||
},
|
||||
15 * 60 * 1000,
|
||||
);
|
||||
|
||||
setInterval(
|
||||
async () => {
|
||||
console.log("Bâtiment : ...");
|
||||
const team = await new Promise((resolve, reject) => {
|
||||
db.get(`SELECT * FROM teams`, (err, row) => {
|
||||
if (err) reject(err);
|
||||
@@ -112,7 +105,6 @@ module.exports = {
|
||||
|
||||
if (team.location == 0) return;
|
||||
db.run(`UPDATE teams SET bank = bank + ?`, [team.location]);
|
||||
console.log("Bâtiment : OK");
|
||||
},
|
||||
1 * 60 * 1000,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user