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",