woomy-v2/bot/event_modules/ready/ready.js

11 lines
398 B
JavaScript
Raw Normal View History

2020-10-21 00:39:16 +00:00
module.exports = class {
2020-10-20 10:23:07 +00:00
constructor (wsEvent) {
this.wsEvent = wsEvent;
2020-10-20 08:30:46 +00:00
}
async run (client) {
2020-10-21 07:57:26 +00:00
const activity = client.constants.activities.random();
client.editStatus('online', { name: `${activity.message} | v${client.version}`, type: activity.type});
2020-10-20 08:30:46 +00:00
client.logger.event(`Woomy v${client.version} initialized and ready to accept commands!`);
}
2020-10-21 00:39:16 +00:00
};