From 89f76d36e5e756c8432230babe609c1db77854ba Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 23 Feb 2022 13:31:43 +0500 Subject: [PATCH] =?UTF-8?q?v3.4.0=20=D0=9D=D0=BE=D0=B2=D1=8B=D0=B5=20?= =?UTF-8?q?=D0=B8=D0=B3=D1=80=D1=8B=20=D0=B2=20activity=20=D0=9E=D0=B1?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/General/activity.js | 18 +++++++++++++++++- dashboard/public/docs/updates.md | 6 +++++- package.json | 7 ++++--- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/commands/General/activity.js b/commands/General/activity.js index a2c97fc2..60fe7446 100644 --- a/commands/General/activity.js +++ b/commands/General/activity.js @@ -24,7 +24,7 @@ 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", "sketchheads", "fishing", "lettertile", "poker", "spellcast", "wordsnack", "puttparty", "youtube"]; + const activities = ["awkword", "betrayal", "checkers", "chess", "sketchheads", "ocho", "fishing", "lettertile", "poker", "spellcast", "wordsnack", "puttparty", "youtube"]; const activity = args[0]; switch (activity) { @@ -109,6 +109,22 @@ class Activity extends Command { }); break; + case "ocho": + this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "ocho").then(async invite => { + const embed = new Discord.MessageEmbed() + .setTitle("Ocho") + .setColor(data.config.embed.color) + .setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Ocho", channel: voice.name })}](${invite.code})**`) + .setFooter({ + text: message.translate("general/activity:FOOTER") + }) + .setTimestamp(); + return message.reply({ + embeds: [embed] + }); + }); + break; + case "fishing": this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "fishing").then(async invite => { const embed = new Discord.MessageEmbed() diff --git a/dashboard/public/docs/updates.md b/dashboard/public/docs/updates.md index 11f1afb2..d5865cab 100644 --- a/dashboard/public/docs/updates.md +++ b/dashboard/public/docs/updates.md @@ -1,3 +1,7 @@ +### JaBa v3.4.0 +* Добавлено + * Новые игры в *activity* - **Ocho** и **Sketchheads**. + ### JaBa v3.3.9 * Добавлено * Команда *emoji* - Получить информацию об эмодзи. @@ -46,7 +50,7 @@ ### JaBa v3.3.0 * Добавлено * Команда *horserace* - конные скачки со ставками. - * Ещё одно место куда вы можете потратить свою зарплату =) (или заработать неплохие деньги) + * Ещё одно место куда вы можете потратить свою зарплату =) (или заработать неплохие деньги). ### JaBa v3.2.9 * Исправления diff --git a/package.json b/package.json index cc4ac9cb..4c1bc0ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jaba", - "version": "3.3.9", + "version": "3.4.0", "description": "A very complete Discord bot (more than 100 commands) that uses the Discord.js", "main": "index.js", "private": true, @@ -14,10 +14,11 @@ "license": "ISC", "dependencies": { "@discordjs/opus": "^0.7.0", - "@discordjs/voice": "^0.7.5", + "@discordjs/voice": "^0.8.0", "@distube/soundcloud": "^1.1.0", "@distube/spotify": "^1.2.1", "@distube/yt-dlp": "^1.0.2", + "@distube/ytdl-core": "^4.10.0", "@k3rn31p4nic/google-translate-api": "github:k3rn31p4nic/google-translate-api", "@sindresorhus/slugify": "^1.1.0", "amethyste-api": "github:Androz2091/amethyste-api", @@ -31,7 +32,7 @@ "discord-backup": "^3.0.1", "discord-giveaways": "github:Androz2091/discord-giveaways#develop", "discord-paginationembed": "github:gazmull/discord-paginationembed#v3", - "discord-together": "^1.3.25", + "discord-together": "^1.3.3", "discord.js": "^13.6.0", "distube": "^3.3.2", "ejs": "^3.1.3",