discord.js-akinator
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -66,2 +66,3 @@ const Discord = require("discord.js"); | ||
let stepsSinceLastGuess = 0; | ||
let hasGuessed = false; | ||
@@ -102,3 +103,3 @@ let noResEmbed = new Discord.MessageEmbed() | ||
if (((aki.progress >= 95 && stepsSinceLastGuess >= 10) || aki.currentStep >= 78) && (!attemptingGuess.has(message.guild.id))) { | ||
if (((aki.progress >= 95 && (stepsSinceLastGuess >= 10 || hasGuessed == false)) || aki.currentStep >= 78) && (!attemptingGuess.has(message.guild.id))) { | ||
attemptingGuess.add(message.guild.id) | ||
@@ -108,2 +109,3 @@ await aki.win(); | ||
stepsSinceLastGuess = 0; | ||
hasGuessed = true; | ||
@@ -110,0 +112,0 @@ let guessEmbed = new Discord.MessageEmbed() |
{ | ||
"name": "discord.js-akinator", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Create an Akinator Command for Your Discord Bot within Seconds of Installation.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
14485
244