mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 14:44:58 +05:00
another one
This commit is contained in:
parent
4819b614a5
commit
0e4834c8ab
1 changed files with 11 additions and 1 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue