mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 14:38:49 +00:00
fix: Add configurable status/presence options into config.js
This commit is contained in:
1 parent
614b4a4775
commit
5f456daf67
1 file changed
+3
-11
@@ -1,6 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, systemOptions } = require('../../config');
|
||||
const { Events, ActivityType, PresenceUpdateStatus, EmbedBuilder } = require('discord.js');
|
||||
const { embedOptions, systemOptions, presenceStatusOptions } = require('../../config');
|
||||
const { Events, EmbedBuilder } = require('discord.js');
|
||||
const { postBotStats } = require('../../utils/other/postBotStats.js');
|
||||
|
||||
module.exports = {
|
||||
@@ -9,15 +9,7 @@ module.exports = {
|
||||
once: true,
|
||||
execute: async (client) => {
|
||||
logger.info(`Client logged in successfully as ${client.user.tag}!`);
|
||||
await client.user.setPresence({
|
||||
status: PresenceUpdateStatus.Online,
|
||||
activities: [
|
||||
{
|
||||
name: '/help',
|
||||
type: ActivityType.Watching
|
||||
}
|
||||
]
|
||||
});
|
||||
await client.user.setPresence(presenceStatusOptions);
|
||||
|
||||
// Post bot stats to bot lists in production
|
||||
process.env.NODE_ENV === 'production' ? postBotStats(client) : null;
|
||||
|
||||
Reference in new issue
Block a user