mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 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 logger = require('../../services/logger');
|
||||||
const { embedOptions, systemOptions } = require('../../config');
|
const { embedOptions, systemOptions, presenceStatusOptions } = require('../../config');
|
||||||
const { Events, ActivityType, PresenceUpdateStatus, EmbedBuilder } = require('discord.js');
|
const { Events, EmbedBuilder } = require('discord.js');
|
||||||
const { postBotStats } = require('../../utils/other/postBotStats.js');
|
const { postBotStats } = require('../../utils/other/postBotStats.js');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@@ -9,15 +9,7 @@ module.exports = {
|
|||||||
once: true,
|
once: true,
|
||||||
execute: async (client) => {
|
execute: async (client) => {
|
||||||
logger.info(`Client logged in successfully as ${client.user.tag}!`);
|
logger.info(`Client logged in successfully as ${client.user.tag}!`);
|
||||||
await client.user.setPresence({
|
await client.user.setPresence(presenceStatusOptions);
|
||||||
status: PresenceUpdateStatus.Online,
|
|
||||||
activities: [
|
|
||||||
{
|
|
||||||
name: '/help',
|
|
||||||
type: ActivityType.Watching
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
|
||||||
|
|
||||||
// Post bot stats to bot lists in production
|
// Post bot stats to bot lists in production
|
||||||
process.env.NODE_ENV === 'production' ? postBotStats(client) : null;
|
process.env.NODE_ENV === 'production' ? postBotStats(client) : null;
|
||||||
|
|||||||
Reference in new issue
Block a user