From 783395e4a51501b71937a607ced1b5bc7ea56afa Mon Sep 17 00:00:00 2001 From: "Ean Milligan (Bastion)" Date: Mon, 1 May 2023 15:45:03 -0400 Subject: [PATCH] V2.1.3 - Fix server count reporting --- config.example.ts | 2 +- mod.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.example.ts b/config.example.ts index 94a480d..09e0e2f 100644 --- a/config.example.ts +++ b/config.example.ts @@ -1,6 +1,6 @@ export const config = { 'name': 'The Artificer', // Name of the bot - 'version': '2.1.2', // Version of the bot + 'version': '2.1.3', // Version of the bot 'token': 'the_bot_token', // Discord API Token for this bot 'localtoken': 'local_testing_token', // Discord API Token for a secondary OPTIONAL testing bot, THIS MUST BE DIFFERENT FROM "token" 'prefix': '[[', // Prefix for all commands diff --git a/mod.ts b/mod.ts index 2d3def6..9982d70 100644 --- a/mod.ts +++ b/mod.ts @@ -71,7 +71,7 @@ startBot({ // Interval to update bot list stats every 24 hours LOCALMODE ? log(LT.INFO, 'updateListStatistics not running') : setInterval(() => { log(LT.LOG, 'Updating all bot lists statistics'); - intervals.updateListStatistics(botId, cache.guilds.size); + intervals.updateListStatistics(botId, cache.guilds.size + cache.dispatchedGuildIds.size); }, 86400000); // Interval to update hourlyRates every hour @@ -89,7 +89,7 @@ startBot({ // setTimeout added to make sure the startup message does not error out setTimeout(() => { LOCALMODE && editBotNickname(config.devServer, `LOCAL - ${config.name}`); - LOCALMODE ? log(LT.INFO, 'updateListStatistics not running') : intervals.updateListStatistics(botId, cache.guilds.size); + LOCALMODE ? log(LT.INFO, 'updateListStatistics not running') : intervals.updateListStatistics(botId, cache.guilds.size + cache.dispatchedGuildIds.size); intervals.updateHourlyRates(); intervals.updateHeatmapPng(); editBotStatus({