mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10:17 +00:00
Update status
This commit is contained in:
parent
97e9da5628
commit
c227d49113
@ -14,6 +14,15 @@ module.exports = {
|
||||
client.user.setStatus('dnd');
|
||||
dbl.postStats(client.guilds.size);
|
||||
console.log('- Activated -');
|
||||
let status = [`${client.users.size} users on ${client.guilds.size} guilds!`, '@musix help | 🎶'];
|
||||
let i = 0;
|
||||
setInterval(() => {
|
||||
if (i == status.length) {
|
||||
i = 0;
|
||||
}
|
||||
client.user.setActivity(status[i], { type: 'LISTENING' });
|
||||
i++;
|
||||
}, 30000);
|
||||
setInterval(async () => {
|
||||
client.guilds.forEach(guild => {
|
||||
client.db.collection('guilds').doc(guild.id).set({
|
||||
|
Loading…
Reference in New Issue
Block a user