another one

This commit is contained in:
JonnyBro 2021-12-25 16:33:26 +05:00
parent 4819b614a5
commit 0e4834c8ab

View file

@ -25,7 +25,7 @@ class Activity extends Command {
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT"); 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 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) { switch (activity) {
case "awkword": case "awkword":
@ -172,6 +172,16 @@ class Activity extends Command {
}); });
break; 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: default:
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
.setTitle(message.translate("general/activity:TITLE")) .setTitle(message.translate("general/activity:TITLE"))