Skip to content

Commit

Permalink
Added lastCheck in the stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo0111 committed Jan 31, 2022
1 parent 4a3496d commit ed1d6f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ async function checkNow(client) {
if (needsSave) {
fs.writeFileSync("data.json", JSON.stringify(client.data, null, '\t'));
}
client.lastCheck = new Date().getTime();
}

async function sendWebhook(client, plugin, response) {
Expand Down
3 changes: 2 additions & 1 deletion utils/Webserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ module.exports = class WebServer {

res.json({
servers: bot.guilds.cache.size,
totalMembers: members
totalMembers: members,
lastCheck: bot.lastCheck
});
});

Expand Down

0 comments on commit ed1d6f2

Please sign in to comment.