1
1
mirror of https://github.com/Burn-E99/GroupUp.git synced 2026-06-04 08:53:49 -04:00

handle "major" sonar issues

This commit is contained in:
Ean Milligan (Bastion)
2023-05-01 14:06:46 -04:00
parent 4cb6d624f3
commit 9e4c351a85
4 changed files with 13 additions and 9 deletions

View File

@@ -64,10 +64,14 @@ export const ready = (rawBot: Bot) => {
// Interval to handle updating botList statistics
if (botListPosterIntervalId) clearInterval(botListPosterIntervalId);
LOCALMODE ? log(LT.INFO, 'updateListStatistics not running') : botListPosterIntervalId = setInterval(() => {
log(LT.LOG, 'Updating all bot lists statistics');
updateBotListStatistics(bot.guilds.size + bot.dispatchedGuildIds.size);
}, 86400000);
if (LOCALMODE) {
log(LT.INFO, 'updateListStatistics not running');
} else {
botListPosterIntervalId = setInterval(() => {
log(LT.LOG, 'Updating all bot lists statistics');
updateBotListStatistics(bot.guilds.size + bot.dispatchedGuildIds.size);
}, 86400000);
}
// setTimeout added to make sure the startup message does not error out
setTimeout(() => {