From c227d491139ff6190e67eb6ca16409d2f174d36d Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Tue, 22 Oct 2019 18:28:15 +0300 Subject: [PATCH] Update status --- events/ready.js | 9 +++++++++ index.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/events/ready.js b/events/ready.js index b4b50142..69009348 100644 --- a/events/ready.js +++ b/events/ready.js @@ -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({ diff --git a/index.js b/index.js index 53adea2e..ae06cd37 100644 --- a/index.js +++ b/index.js @@ -34,7 +34,7 @@ client.funcs.msToTime = require('./funcs/msToTime.js'); client.funcs.dbget = require('./funcs/dbget.js'); client.config = { - token: process.env.TOKEN, + token: process.env.TESTTOKEN, apikey: process.env.API_KEY, prefix: '>', test: 'success',