From 0e4834c8ab8e5333655cd2b95ac9db71d501dfd7 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 25 Dec 2021 16:33:26 +0500 Subject: [PATCH] another one --- commands/General/activity.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/commands/General/activity.js b/commands/General/activity.js index 731411f3..e986ca5b 100644 --- a/commands/General/activity.js +++ b/commands/General/activity.js @@ -25,7 +25,7 @@ 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].toLowerCase(); + const activity = args[0] ? args[0].toLowerCase() : ""; switch (activity) { case "awkword": @@ -172,6 +172,16 @@ class Activity extends Command { }); break; + case "list": + const embed = new Discord.MessageEmbed() + .setTitle(message.translate("general/activity:TITLE")) + .setDescription(activities.join("\n")) + .setColor(data.config.embed.color) + .setFooter(message.translate("general/activity:FOOTER")) + .setTimestamp() + message.channel.send(embed); + break; + default: const embed = new Discord.MessageEmbed() .setTitle(message.translate("general/activity:TITLE"))