From 99e337aa34ed3282e0cd126a504c5cbe40e248db Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 25 Dec 2021 16:27:21 +0500 Subject: [PATCH] new game puttparty --- commands/General/activity.js | 41 +++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/commands/General/activity.js b/commands/General/activity.js index 54b8f94c..30e3888d 100644 --- a/commands/General/activity.js +++ b/commands/General/activity.js @@ -23,23 +23,22 @@ class Activity extends Command { const perms = voice.permissionsFor(this.client.user); if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT"); - // "awkword" - disabled - const activities = ["betrayal", "checkers", "chess", "doodlecrew", "fishing", "lettertile", "poker", "spellcast", "wordsnack", "youtube"]; + + const activities = ["awkword", "betrayal", "checkers", "chess", "doodlecrew", "fishing", "lettertile", "poker", "spellcast", "wordsnack", "puttparty", "youtube"]; const activity = args[0]; switch (activity) { - // Disabled for now - // case "awkword": - // this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "awkword").then(async invite => { - // const embed = new Discord.MessageEmbed() - // .setTitle("Awkword") - // .setColor(data.config.embed.color) - // .setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Awkword", channel: voice.name })}](${invite.code})**`) - // .setFooter(message.translate("general/activity:FOOTER")) - // .setTimestamp() - // return message.channel.send(embed); - // }); - // break; + case "awkword": + this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "awkword").then(async invite => { + const embed = new Discord.MessageEmbed() + .setTitle("Awkword") + .setColor(data.config.embed.color) + .setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Awkword", channel: voice.name })}](${invite.code})**`) + .setFooter(message.translate("general/activity:FOOTER")) + .setTimestamp() + return message.channel.send(embed); + }); + break; case "betrayal": this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "betrayal").then(async invite => { @@ -149,6 +148,18 @@ class Activity extends Command { }); break; + case "puttparty": + this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "puttparty").then(async invite => { + const embed = new Discord.MessageEmbed() + .setTitle("Puttparty") + .setColor(data.config.embed.color) + .setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Puttparty", channel: voice.name })}](${invite.code})**`) + .setFooter(message.translate("general/activity:FOOTER")) + .setTimestamp() + return message.channel.send(embed); + }); + break; + case "youtube": this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "youtube").then(async invite => { const embed = new Discord.MessageEmbed() @@ -170,7 +181,7 @@ class Activity extends Command { .setTimestamp() message.channel.send(embed); break; - } + }; } };