Holana/events/ready.js
EmotionChild 75c6d307de Yes
2021-10-09 12:58:57 +13:00

12 lines
No EOL
528 B
JavaScript

module.exports = (client) => {
console.log(
`Ready to server in ${client.channels.cache.size} channels on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users.`
);
const activities = [`Giveaways in ${client.guilds.cache.size} guilds`,"g!help",`over ${client.users.cache.size} users!`];
setInterval(() => {
let activity = activities[Math.floor(Math.random() * activities.length)];
client.user.setActivity(activity, { type: "WATCHING" });
}, 20000);
};