mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
feat: Automatically send guildCount stats to botlist sites on startup
This commit is contained in:
1 parent
6d132c7749
commit
547f3ca7c2
3 files changed
+89
No files matched your search
@@ -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;
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user