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

12 lines
No EOL
355 B
JavaScript

const activities = require('../../assets/activities.json');
module.exports = class {
constructor (wsEvent) {
this.wsEvent = wsEvent;
}
async run (client) {
const activity = activities.random();
client.user.setPresence({ activities: [{ name: `${activity.message} | v${client.version}` }], status: 'online' });
}
};