discord.js-akinator
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "discord.js-akinator", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A Discord.js v13 Module that allows you to Create an Akinator Command for Your Discord Bot within Seconds of Installation.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -178,3 +178,3 @@ const Discord = require("discord.js"); | ||
.setTitle(`${await translate(`I'm ${Math.round(aki.progress)}% sure your character is...`, options.language)}`) | ||
.setDescription(`**${await translate(aki.answers[0].name, options.language)}**\n${await translate(aki.answers[0].description, options.language)}\n\n${translations.isThisYourCharacter} ${!options.useButtons ? "**(Type Y/${translations.yes} or N/${translations.no})**" : ""}`) | ||
.setDescription(`**${await translate(aki.answers[0].name, options.language)}**\n${await translate(aki.answers[0].description, options.language)}\n\n${translations.isThisYourCharacter} ${!options.useButtons ? `**(Type Y/${translations.yes} or N/${translations.no})**` : ""}`) | ||
.addField(translations.ranking, `**#${aki.answers[0].ranking}**`, true) | ||
@@ -224,6 +224,9 @@ .addField(translations.noOfQuestions, `**${aki.currentStep}**`, true) | ||
.setColor("RANDOM") | ||
await akiMessage.edit({ embeds: [finishedGameDefeated], components: [] }) | ||
if (options.useButtons) await response.update({ embeds: [finishedGameDefeated], components: [] }) | ||
else await akiMessage.edit({ embeds: [finishedGameDefeated], components: [] }) | ||
notFinished = false; | ||
games.delete(message.author.id) | ||
} else { | ||
if (options.useButtons) await response.update({ embeds: [guessEmbed], components: [] }) | ||
else await akiMessage.edit({ embeds: [guessEmbed], components: [] }) | ||
aki.progress = 50 | ||
@@ -230,0 +233,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137614
2925