hullcss-discord-bot/events/ready.js

23 lines
629 B
JavaScript
Raw Normal View History

2022-05-10 01:17:25 +01:00
const client = require("../index");
2022-06-02 02:14:39 +01:00
2022-05-10 01:17:25 +01:00
client.on('ready', () => {
2022-06-02 02:34:17 +01:00
console.log('HullCSS is online')
2022-05-10 01:17:25 +01:00
2022-06-27 11:42:38 +01:00
const Activities = [
"!help",
"Hullcss.org",
"Slash Commands",
];
setInterval(() =>{
client.user.setActivity(Activities[Math.floor(Math.random() * Activities.length)], {type:"WATCHING"})
}, 180000);
2022-06-02 02:14:39 +01:00
setInterval(() =>{
2022-06-02 17:14:03 +01:00
const memberCount = client.guilds.cache.get('427865794467069962').memberCount
const channel = client.channels.cache.get('906167542249308160');
2022-06-02 02:40:53 +01:00
channel.setName(`Discord Members: ${memberCount.toLocaleString()}`);
2022-06-02 02:14:39 +01:00
}, 600000);
2022-06-02 17:14:03 +01:00
2022-06-02 02:34:17 +01:00
})