From 402d01ceba39901961e011acd6acbf3e7648a35c Mon Sep 17 00:00:00 2001 From: Jimi Date: Sat, 26 Nov 2022 16:55:28 +0100 Subject: [PATCH] Status update --- index.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 9888fa2..21479e7 100644 --- a/index.js +++ b/index.js @@ -5,10 +5,18 @@ const client = new Client(); //New Discord client const botconfig = require('./data/botconfig.json') //Login info for the bot, you will have to provide your own info there client.on("ready", () => { - console.log(`The bot is online!`) - - client.user.setPresence({ status: 'dnd' }); -}); + console.log(`The bot is online!`) + + client.user.setActivity(`${client.guilds.cache.size} servers • discord.gg/memee`, { + type: "WATCHING" + }); + }); + + client.on("guildCreate", function(guild){ + client.user.setActivity(`${client.guilds.cache.size} servers • discord.gg/memee`, { + type: "WATCHING" + }); + }); client.on("message", async (message) => { const DetectMessageType = require('./functions/!DetectMessageType.js')