mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
Некоторые активности требуют уровень буста
This commit is contained in:
parent
cb29f37cb9
commit
cb9107d99f
3 changed files with 14 additions and 2 deletions
|
@ -62,6 +62,8 @@ class Activity extends Command {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "checkers":
|
case "checkers":
|
||||||
|
if (message.guild.PremiumTier === "NONE") return message.error("general/activity:NO_BOOST");
|
||||||
|
|
||||||
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "checkers").then(async invite => {
|
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "checkers").then(async invite => {
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setTitle("Checkers In The Park")
|
.setTitle("Checkers In The Park")
|
||||||
|
@ -78,6 +80,8 @@ class Activity extends Command {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "chess":
|
case "chess":
|
||||||
|
if (message.guild.PremiumTier === "NONE") return message.error("general/activity:NO_BOOST");
|
||||||
|
|
||||||
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "chess").then(async invite => {
|
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "chess").then(async invite => {
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setTitle("Chess In The Park")
|
.setTitle("Chess In The Park")
|
||||||
|
@ -110,6 +114,8 @@ class Activity extends Command {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "ocho":
|
case "ocho":
|
||||||
|
if (message.guild.PremiumTier === "NONE") return message.error("general/activity:NO_BOOST");
|
||||||
|
|
||||||
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "ocho").then(async invite => {
|
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "ocho").then(async invite => {
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setTitle("Ocho")
|
.setTitle("Ocho")
|
||||||
|
@ -158,6 +164,8 @@ class Activity extends Command {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "poker":
|
case "poker":
|
||||||
|
if (message.guild.PremiumTier === "NONE") return message.error("general/activity:NO_BOOST");
|
||||||
|
|
||||||
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "poker").then(async invite => {
|
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "poker").then(async invite => {
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setTitle("Poker Night")
|
.setTitle("Poker Night")
|
||||||
|
@ -174,6 +182,8 @@ class Activity extends Command {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "spellcast":
|
case "spellcast":
|
||||||
|
if (message.guild.PremiumTier === "NONE") return message.error("general/activity:NO_BOOST");
|
||||||
|
|
||||||
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "spellcast").then(async invite => {
|
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "spellcast").then(async invite => {
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setTitle("Spell Cast")
|
.setTitle("Spell Cast")
|
||||||
|
|
|
@ -3,5 +3,6 @@
|
||||||
"USAGE": "{{prefix}}activity (активность)",
|
"USAGE": "{{prefix}}activity (активность)",
|
||||||
"EXAMPLES": "{{prefix}}activity\n{{prefix}}activity chess",
|
"EXAMPLES": "{{prefix}}activity\n{{prefix}}activity chess",
|
||||||
"TITLE": "Список доступных активностей",
|
"TITLE": "Список доступных активностей",
|
||||||
"FOOTER": "JaBa | Discord Together"
|
"FOOTER": "JaBa | Discord Together",
|
||||||
|
"NO_BOOST": "Необходим первый уровень буста или выше!"
|
||||||
}
|
}
|
|
@ -3,5 +3,6 @@
|
||||||
"USAGE": "{{prefix}}activity (активность)",
|
"USAGE": "{{prefix}}activity (активность)",
|
||||||
"EXAMPLES": "{{prefix}}activity\n{{prefix}}activity chess",
|
"EXAMPLES": "{{prefix}}activity\n{{prefix}}activity chess",
|
||||||
"TITLE": "Список доступных активностей",
|
"TITLE": "Список доступных активностей",
|
||||||
"FOOTER": "JaBa | Discord Together"
|
"FOOTER": "JaBa | Discord Together",
|
||||||
|
"NO_BOOST": "Необходим первый уровень буста или выше!"
|
||||||
}
|
}
|
Loading…
Reference in a new issue