From e6438e211724309f2212f79cb54bff2d1b85c8be Mon Sep 17 00:00:00 2001 From: Supositware Date: Tue, 16 Aug 2022 21:12:49 +0200 Subject: [PATCH] Now with slash commands! --- events/client/status.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/events/client/status.js b/events/client/status.js index 34b2b5f..be52686 100644 --- a/events/client/status.js +++ b/events/client/status.js @@ -18,7 +18,8 @@ export default { if (random === 0) { console.log('Status type: \x1b[32mWatching\x1b[0m'); - const status = watch[Math.floor((Math.random() * watch.length))]; + let status = watch[Math.floor((Math.random() * watch.length))]; + status = status + ' | Now with slash commands!'; console.log(`Setting status to: ${status}`); client.user.setActivity(status, { type: 'WATCHING' }); } @@ -26,9 +27,11 @@ export default { else if (random === 1) { console.log('Status type: \x1b[32mPlaying\x1b[0m'); - const status = game[Math.floor((Math.random() * game.length))]; + let status = game[Math.floor((Math.random() * game.length))]; + status = status + ' | Now with slash commands!'; + console.log(`Setting status to: ${status}`); - client.user.setActivity(status, { type: 'PLAYING' }); + client.user.setActivity(status + ' | Now with slash commands!', { type: 'PLAYING' }); } } },