dbl.on('posted', () => { console.log('Server count posted!'); }) dbl.on('error', e => { console.log(`Oops! ${e}`); }) client.on('ready', () => { setInterval(() => { dbl.postStats(client.guilds.size, client.shards.Id, client.shards.total); }, 100000000); }); dbl.getStats("523375452669083655").then(stats => { console.log(stats) // {"server_count":2,"shards":[]} }); dbl.getBot("523375452669083655").then(bot => { console.log(`====> ${bot.username} <====`) }); dbl.getUser("519861424017768451").then(user => { console.log(`====> ${user.username} <====`) }); dbl.isWeekend().then(weekend => { if (weekend) console.log("====> Double Vote <====") }); dbl.hasVoted('vote', vote => { console.log(`User with ID ${vote.user} just voted!`); }); }