From 797cb48b93985adaf7ec1b21f38e6a682dbbbc7d Mon Sep 17 00:00:00 2001 From: Keyemail Date: Fri, 10 May 2024 09:22:38 -0700 Subject: [PATCH] Adding status! --- main.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.js b/main.js index eb1ba29..9ee1f80 100644 --- a/main.js +++ b/main.js @@ -35,6 +35,15 @@ for (const folder of commandFolders) { } client.once(Events.ClientReady, readyClient => { + try { + client.user.setPresence({ activities: [{ name: 'Use /help - MBot' }], status: 'idle' }); + console.log(informationStatus + `Activity has been set to '${client.user.presence.activities}'`); + console.log(informationStatus + `Status has been set to ${client.user.presence.status}`); + } catch (error) { + console.log(errorStatus + "Something went wrong with setting the status! Debug information below."); + console.error(error); + } + console.log(informationStatus + "Client is online!"); });