From a5b0628270a76ff5e5ec7c792849e6aabc39af77 Mon Sep 17 00:00:00 2001 From: masterhc Date: Sat, 9 Mar 2024 16:19:39 +0000 Subject: [PATCH] Log clearing --- lib.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib.js b/lib.js index 954e97f..ebc5ffa 100644 --- a/lib.js +++ b/lib.js @@ -1259,17 +1259,11 @@ class Strikes async check() { - /** - * TODO: Grab validated strikes. - * TODO: Check if guild has strikes active. - * TODO: Handle player if strikes have reached the threshold - * - */ const Strikes = await strikesM.find().then(s=>{return s}) - if(Strikes.length==0) return console.log('Lib: Striker: No Strikes') + if(Strikes.length==0) return //console.log('Lib: Striker: No Strikes') const guilds = await guildsM.find({strikes:true}).then(g=>{return g}) .then(guilds => guilds.map(guild => guild.gID));; - if(guilds.length==0) return console.log('Lib: Striker: No Guilds') + if(guilds.length==0) return //console.log('Lib: Striker: No Guilds') const validStrikes = await strikesM.find({validated:true}).then(res=>{return res}); const strikesByGuildID = new Map(); validStrikes.forEach(strike =>