feat: Automatically send guildCount stats to botlist sites on startup

This commit is contained in:
Marius Begby committed 2023-07-17 17:15:19 +02:00
1 parent 6d132c7749
commit 547f3ca7c2
3 files changed
+89

No files matched your search

+4
View File
@@ -1,6 +1,7 @@
const path = require('node:path');
const logger = require(path.resolve('./src/services/logger.js'));
const { Events, ActivityType, PresenceUpdateStatus } = require('discord.js');
const { postBotStats } = require(path.resolve('./src/utils/postBotStats.js'));
module.exports = {
name: Events.ClientReady,
@@ -17,5 +18,8 @@ module.exports = {
}
]
});
// Post bot stats to bot lists in production
process.env.NODE_ENV === 'production' ? postBotStats(client) : null;
}
};