From 0078d8e80e6577f1e81176e9fbca24cc6e67d518 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 25 Dec 2021 16:37:22 +0500 Subject: [PATCH] ima trying --- commands/General/activity.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/General/activity.js b/commands/General/activity.js index ceaa4281..fc05599d 100644 --- a/commands/General/activity.js +++ b/commands/General/activity.js @@ -25,7 +25,9 @@ class Activity extends Command { if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT"); const activities = ["awkword", "betrayal", "checkers", "chess", "doodlecrew", "fishing", "lettertile", "poker", "spellcast", "wordsnack", "puttparty", "youtube"]; - const activity = args[0] != null ? args[0].toLowerCase() : null; + const activity = ""; + if (args[0] === "") activity = args[0]; + else activity = args[0].toLowerCase(); switch (activity) { case "awkword":