From bf52963a4c1ef9386382a092262408181cf89d53 Mon Sep 17 00:00:00 2001 From: nightlxight <89344461+nightlxight@users.noreply.github.com> Date: Sun, 3 Oct 2021 19:30:16 +0300 Subject: [PATCH] Update index.js --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index e1bf96b..bf5cdb8 100644 --- a/index.js +++ b/index.js @@ -29,8 +29,13 @@ fs.readdir("./commands/", (err, files) => { }) bot.on("ready", async () => { console.log(`${bot.user.username} is online on ${bot.guilds.size} servers!`); + try { bot.user.setActivity(`In Development`); bot.user.setStatus('online'); + } catch (error) { + console.warn("There was an error!"); + console.error(error); + }; bot.on("message", async message => { if(message.author.bot) return;