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

12 lines
355 B
JavaScript
Raw Normal View History

2020-11-10 03:31:49 +00:00
const activities = require('../../assets/activities.json');
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-11-10 03:31:49 +00:00
const activity = activities.random();
2021-07-15 02:26:42 +00:00
client.user.setPresence({ activities: [{ name: `${activity.message} | v${client.version}` }], status: 'online' });
2020-10-20 08:30:46 +00:00
}
2020-10-21 00:39:16 +00:00
};