mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
feat!: New event handling
This commit is contained in:
1 parent
d8951284cb
commit
12d9234271
18 files changed
+324
-152
No files matched your search
@@ -0,0 +1,21 @@
|
||||
const path = require('node:path');
|
||||
const logger = require(path.resolve('./src/services/logger.js'));
|
||||
const { Events, ActivityType } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: Events.ClientReady,
|
||||
isDebug: false,
|
||||
once: true,
|
||||
execute: async (client) => {
|
||||
logger.info(`Client logged in successfully as ${client.user.tag}!`);
|
||||
await client.user.setPresence({
|
||||
status: 'online',
|
||||
activities: [
|
||||
{
|
||||
name: '/help',
|
||||
type: ActivityType.Watching
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user