This commit is contained in:
JonnyBro 2022-02-04 00:58:23 +05:00
parent 299a8c34ec
commit ac3c364495

View file

@ -24,24 +24,25 @@ class Activity extends Command {
const perms = voice.permissionsFor(this.client.user); const perms = voice.permissionsFor(this.client.user);
if (!perms.has(Discord.Permissions.FLAGS.CONNECT) || !perms.has(Discord.Permissions.FLAGS.SPEAK)) return message.error("music/play:VOICE_CHANNEL_CONNECT"); if (!perms.has(Discord.Permissions.FLAGS.CONNECT) || !perms.has(Discord.Permissions.FLAGS.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", "sketchheads", "fishing", "lettertile", "poker", "spellcast", "wordsnack", "puttparty", "youtube"];
const activity = args[0]; const activity = args[0];
switch (activity) { switch (activity) {
case "awkword": case "awkword":
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "awkword").then(async invite => { message.channel.send("Не работает!");
const embed = new Discord.MessageEmbed() // this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "awkword").then(async invite => {
.setTitle("Awkword") // const embed = new Discord.MessageEmbed()
.setColor(data.config.embed.color) // .setTitle("Awkword")
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Awkword", channel: voice.name })}](${invite.code})**`) // .setColor(data.config.embed.color)
.setFooter({ // .setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Awkword", channel: voice.name })}](${invite.code})**`)
text: message.translate("general/activity:FOOTER") // .setFooter({
}) // text: message.translate("general/activity:FOOTER")
.setTimestamp(); // })
return message.channel.send({ // .setTimestamp();
embeds: [embed] // return message.channel.send({
}); // embeds: [embed]
}); // });
// });
break; break;
case "betrayal": case "betrayal":
@ -92,12 +93,12 @@ class Activity extends Command {
}); });
break; break;
case "doodlecrew": case "sketchheads":
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "doodlecrew").then(async invite => { this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "sketchheads").then(async invite => {
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
.setTitle("Doodle Crew") .setTitle("Sketch Heads")
.setColor(data.config.embed.color) .setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Doodle Crew", channel: voice.name })}](${invite.code})**`) .setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Sketch Heads", channel: voice.name })}](${invite.code})**`)
.setFooter({ .setFooter({
text: message.translate("general/activity:FOOTER") text: message.translate("general/activity:FOOTER")
}) })