new game puttparty

This commit is contained in:
JonnyBro 2021-12-25 16:27:21 +05:00
parent d0ecc7ba4b
commit 99e337aa34

View file

@ -23,23 +23,22 @@ class Activity extends Command {
const perms = voice.permissionsFor(this.client.user); const perms = voice.permissionsFor(this.client.user);
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");
// "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]; const activity = args[0];
switch (activity) { switch (activity) {
// Disabled for now case "awkword":
// case "awkword": this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "awkword").then(async invite => {
// this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "awkword").then(async invite => { const embed = new Discord.MessageEmbed()
// const embed = new Discord.MessageEmbed() .setTitle("Awkword")
// .setTitle("Awkword") .setColor(data.config.embed.color)
// .setColor(data.config.embed.color) .setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Awkword", channel: voice.name })}](${invite.code})**`)
// .setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Awkword", channel: voice.name })}](${invite.code})**`) .setFooter(message.translate("general/activity:FOOTER"))
// .setFooter(message.translate("general/activity:FOOTER")) .setTimestamp()
// .setTimestamp() return message.channel.send(embed);
// return message.channel.send(embed); });
// }); break;
// break;
case "betrayal": case "betrayal":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "betrayal").then(async invite => { this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "betrayal").then(async invite => {
@ -149,6 +148,18 @@ class Activity extends Command {
}); });
break; 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": case "youtube":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "youtube").then(async invite => { this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "youtube").then(async invite => {
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
@ -170,7 +181,7 @@ class Activity extends Command {
.setTimestamp() .setTimestamp()
message.channel.send(embed); message.channel.send(embed);
break; break;
} };
} }
}; };