Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
aki-api no longer uses en_objects or en_animals etc. They only use en... As shown i commit jgoralcz/aki-api@167f057#diff-c67d5ecb0f0d072c796538aa31af225b73f3ce7d1cfd857868df6d4f57b84cb2
  • Loading branch information
BannerBomb authored Apr 27, 2024
1 parent 67390aa commit 08683b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ module.exports = async function (input, options) {
}

//starts the game
let gameTypeRegion = options.gameType == "animal" ? "en_animals" : options.gameType == "character" ? "en" : "en_objects";
let aki = new Aki({ region: gameTypeRegion, childMode: options.childMode });
let aki = new Aki({ region: options.gameType, childMode: options.childMode });
let akiData = await aki.start();

let notFinished = true;
Expand Down Expand Up @@ -319,4 +318,4 @@ module.exports = async function (input, options) {
console.log("Discord.js Akinator Error:")
console.log(e);
}
};
};

0 comments on commit 08683b5

Please sign in to comment.