From ac3c3644958fb23f049d5c7e2c32a9058f7ca3f6 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Fri, 4 Feb 2022 00:58:23 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/General/activity.js | 37 ++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/commands/General/activity.js b/commands/General/activity.js index 63a2b106..b1b61c3d 100644 --- a/commands/General/activity.js +++ b/commands/General/activity.js @@ -24,24 +24,25 @@ class Activity extends Command { 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"); - 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]; switch (activity) { 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({ - text: message.translate("general/activity:FOOTER") - }) - .setTimestamp(); - return message.channel.send({ - embeds: [embed] - }); - }); + message.channel.send("Не работает!"); + // 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({ + // text: message.translate("general/activity:FOOTER") + // }) + // .setTimestamp(); + // return message.channel.send({ + // embeds: [embed] + // }); + // }); break; case "betrayal": @@ -92,12 +93,12 @@ class Activity extends Command { }); break; - case "doodlecrew": - this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "doodlecrew").then(async invite => { + case "sketchheads": + this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "sketchheads").then(async invite => { const embed = new Discord.MessageEmbed() - .setTitle("Doodle Crew") + .setTitle("Sketch Heads") .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({ text: message.translate("general/activity:FOOTER") })