LanDiscordScrapy/events/ready.js

14 lines
490 B
JavaScript
Raw Normal View History

2022-03-04 14:26:14 +01:00
module.exports = async (client) => {
console.log(`${client.user.tag} oberve les ${client.guilds.cache.map(g => g.memberCount).reduce((a,b) => a + b)} utilisateur du serveur !`)
let activites = ['Créer par Lantium#9402 !',`Downloader prêt !` ], i = 0;
setInterval(() => client.user.setPresence({
activities: [{
name: `${activites [i++ % activites.length]}`,
type: 'PLAYING'
}],
status: 'online' }),
5000);
};