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 =>