From 0cfe7782ede220c3ae0eb8ceb564981e2974ae02 Mon Sep 17 00:00:00 2001 From: Taken Date: Fri, 7 Apr 2023 21:12:00 +0200 Subject: [PATCH] Adding dynamic statuses --- index.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index da7b70f..b5cc23b 100644 --- a/index.js +++ b/index.js @@ -130,8 +130,26 @@ for (const file of modalFiles) { client.on(Events.ClientReady, () => { console.log("Logged in as " + client.user.tag + "!"); }); + client.on(Events.ClientReady, () => { - client.user.setActivity({ name: 'over the Illegitimate Guild.', type: ActivityType.Watching }); + + client.user.setActivity({ name: "over the Illegitimate Server", type: ActivityType.Watching }); + + const activities = [ + "over the Illegitimate Server", + "Jone be an idiot", + "Martina is definitely a bot", + "urTryhard steal finals", + "Perlcence be an AI", + "Taken my creator", + "ur mom in my bed" + ]; + + let i = 0; + setInterval(() => + client.user.setActivity({ name: `${activities[i++ % activities.length]}`, type: ActivityType.Watching }), 1000 * 60 * 30 + ) + }); client.on(Events.ClientReady, () => { client.user.setStatus('dnd');