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

12 lines
No EOL
343 B
JavaScript

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