hullcss-discord-bot/events/ready.js

17 lines
454 B
JavaScript

const client = require("../index");
client.on('ready', () => {
console.log('HullCSS is online')
client.user.setActivity(`!help | hullcss.org`, {type:"WATCHING"})
setInterval(() =>{
const memberCount = client.guilds.cache.get('427865794467069962').memberCount
const channel = client.channels.cache.get('906167542249308160');
channel.setName(`Discord Members: ${memberCount.toLocaleString()}`);
}, 600000);
})