1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 03:33:17 +00:00

Update status

This commit is contained in:
MatteZ02 2019-10-22 18:28:15 +03:00
parent 97e9da5628
commit c227d49113
2 changed files with 10 additions and 1 deletions

View File

@ -14,6 +14,15 @@ module.exports = {
client.user.setStatus('dnd'); client.user.setStatus('dnd');
dbl.postStats(client.guilds.size); dbl.postStats(client.guilds.size);
console.log('- Activated -'); 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 () => { setInterval(async () => {
client.guilds.forEach(guild => { client.guilds.forEach(guild => {
client.db.collection('guilds').doc(guild.id).set({ client.db.collection('guilds').doc(guild.id).set({

View File

@ -34,7 +34,7 @@ client.funcs.msToTime = require('./funcs/msToTime.js');
client.funcs.dbget = require('./funcs/dbget.js'); client.funcs.dbget = require('./funcs/dbget.js');
client.config = { client.config = {
token: process.env.TOKEN, token: process.env.TESTTOKEN,
apikey: process.env.API_KEY, apikey: process.env.API_KEY,
prefix: '>', prefix: '>',
test: 'success', test: 'success',