Log clearing

master
masterhc 1 year ago
parent d3a2c6f2c2
commit a5b0628270

@ -1259,17 +1259,11 @@ class Strikes
async check() 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}) 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}) const guilds = await guildsM.find({strikes:true}).then(g=>{return g})
.then(guilds => guilds.map(guild => guild.gID));; .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 validStrikes = await strikesM.find({validated:true}).then(res=>{return res});
const strikesByGuildID = new Map(); const strikesByGuildID = new Map();
validStrikes.forEach(strike => validStrikes.forEach(strike =>

Loading…
Cancel
Save