mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Support Child Mode in Akinator
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
const current = this.client.games.get(msg.channel.id);
|
const current = this.client.games.get(msg.channel.id);
|
||||||
if (current) return msg.reply(`Please wait until the current game of \`${current.name}\` is finished.`);
|
if (current) return msg.reply(`Please wait until the current game of \`${current.name}\` is finished.`);
|
||||||
try {
|
try {
|
||||||
const aki = new Aki(region);
|
const aki = new Aki(region, !msg.channel.nsfw);
|
||||||
let ans = null;
|
let ans = null;
|
||||||
let win = false;
|
let win = false;
|
||||||
let timesGuessed = 0;
|
let timesGuessed = 0;
|
||||||
|
|||||||
+4
-4
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "119.16.0",
|
"version": "119.16.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
"@discordjs/collection": "^0.1.5",
|
"@discordjs/collection": "^0.1.5",
|
||||||
"@discordjs/opus": "^0.3.2",
|
"@discordjs/opus": "^0.3.2",
|
||||||
"@vitalets/google-translate-api": "^3.0.0",
|
"@vitalets/google-translate-api": "^3.0.0",
|
||||||
"aki-api": "^5.0.0",
|
"aki-api": "^5.1.0",
|
||||||
"canvas": "^2.6.1",
|
"canvas": "^2.6.1",
|
||||||
"cheerio": "^1.0.0-rc.3",
|
"cheerio": "^1.0.0-rc.3",
|
||||||
"cloc": "^2.5.1",
|
"cloc": "^2.5.1",
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"gifencoder": "^2.0.1",
|
"gifencoder": "^2.0.1",
|
||||||
"gm": "^1.23.1",
|
"gm": "^1.23.1",
|
||||||
"mathjs": "^7.0.2",
|
"mathjs": "^7.1.0",
|
||||||
"moment": "^2.27.0",
|
"moment": "^2.27.0",
|
||||||
"moment-duration-format": "^2.3.2",
|
"moment-duration-format": "^2.3.2",
|
||||||
"moment-timezone": "^0.5.31",
|
"moment-timezone": "^0.5.31",
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
"utf-8-validate": "^5.0.2"
|
"utf-8-validate": "^5.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^7.3.1",
|
"eslint": "^7.4.0",
|
||||||
"eslint-config-amber": "^2.0.3",
|
"eslint-config-amber": "^2.0.3",
|
||||||
"eslint-plugin-json": "^2.1.1"
|
"eslint-plugin-json": "^2.1.1"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user