Новые игры в activity
Обновление зависимостей
This commit is contained in:
JonnyBro 2022-02-23 13:31:43 +05:00
parent 2d4cc2b76b
commit 89f76d36e5
3 changed files with 26 additions and 5 deletions

View file

@ -24,7 +24,7 @@ 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", "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]; const activity = args[0];
switch (activity) { switch (activity) {
@ -109,6 +109,22 @@ class Activity extends Command {
}); });
break; 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": case "fishing":
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "fishing").then(async invite => { this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "fishing").then(async invite => {
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()

View file

@ -1,3 +1,7 @@
### JaBa v3.4.0
* Добавлено
* Новые игры в *activity* - **Ocho** и **Sketchheads**.
### JaBa v3.3.9 ### JaBa v3.3.9
* Добавлено * Добавлено
* Команда *emoji* - Получить информацию об эмодзи. * Команда *emoji* - Получить информацию об эмодзи.
@ -46,7 +50,7 @@
### JaBa v3.3.0 ### JaBa v3.3.0
* Добавлено * Добавлено
* Команда *horserace* - конные скачки со ставками. * Команда *horserace* - конные скачки со ставками.
* Ещё одно место куда вы можете потратить свою зарплату =) (или заработать неплохие деньги) * Ещё одно место куда вы можете потратить свою зарплату =) (или заработать неплохие деньги).
### JaBa v3.2.9 ### JaBa v3.2.9
* Исправления * Исправления

View file

@ -1,6 +1,6 @@
{ {
"name": "jaba", "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", "description": "A very complete Discord bot (more than 100 commands) that uses the Discord.js",
"main": "index.js", "main": "index.js",
"private": true, "private": true,
@ -14,10 +14,11 @@
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@discordjs/opus": "^0.7.0", "@discordjs/opus": "^0.7.0",
"@discordjs/voice": "^0.7.5", "@discordjs/voice": "^0.8.0",
"@distube/soundcloud": "^1.1.0", "@distube/soundcloud": "^1.1.0",
"@distube/spotify": "^1.2.1", "@distube/spotify": "^1.2.1",
"@distube/yt-dlp": "^1.0.2", "@distube/yt-dlp": "^1.0.2",
"@distube/ytdl-core": "^4.10.0",
"@k3rn31p4nic/google-translate-api": "github:k3rn31p4nic/google-translate-api", "@k3rn31p4nic/google-translate-api": "github:k3rn31p4nic/google-translate-api",
"@sindresorhus/slugify": "^1.1.0", "@sindresorhus/slugify": "^1.1.0",
"amethyste-api": "github:Androz2091/amethyste-api", "amethyste-api": "github:Androz2091/amethyste-api",
@ -31,7 +32,7 @@
"discord-backup": "^3.0.1", "discord-backup": "^3.0.1",
"discord-giveaways": "github:Androz2091/discord-giveaways#develop", "discord-giveaways": "github:Androz2091/discord-giveaways#develop",
"discord-paginationembed": "github:gazmull/discord-paginationembed#v3", "discord-paginationembed": "github:gazmull/discord-paginationembed#v3",
"discord-together": "^1.3.25", "discord-together": "^1.3.3",
"discord.js": "^13.6.0", "discord.js": "^13.6.0",
"distube": "^3.3.2", "distube": "^3.3.2",
"ejs": "^3.1.3", "ejs": "^3.1.3",