woomy/events/ready.js

16 lines
578 B
JavaScript
Raw Normal View History

2020-03-30 08:46:36 +00:00
module.exports = (client) => {
2020-04-04 09:16:05 +00:00
const activities = client.commands.keyArray()
let activity = activities.random()
client.user.setActivity(`${client.config.defaultGuildSettings.prefix + activity} | v${client.version.number}`, { type: 'PLAYING' })
setInterval(() => {
activity = activities.random()
if (client.lockActivity === false) {
client.user.setActivity(`${client.config.defaultGuildSettings.prefix + activity} | v${client.version.number}`, { type: 'PLAYING' })
};
}, 30000)
2020-03-31 07:59:09 +00:00
client.logger.ready('Connected to Discord as ' + client.user.tag)
2020-03-30 16:01:13 +00:00
}