mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 08:12:04 +02:00
Akinator US
This commit is contained in:
@@ -66,7 +66,7 @@ module.exports = class AkinatorCommand extends Command {
|
||||
|
||||
async createSession(channel) {
|
||||
const { body } = await snekfetch
|
||||
.get('http://api-en1.akinator.com/ws/new_session')
|
||||
.get('http://api-us1.akinator.com/ws/new_session')
|
||||
.query({
|
||||
partner: 1,
|
||||
player: 'xiaobot'
|
||||
@@ -84,7 +84,7 @@ module.exports = class AkinatorCommand extends Command {
|
||||
async progress(channel, answer) {
|
||||
const session = this.sessions.get(channel.id);
|
||||
const { body } = await snekfetch
|
||||
.get('http://api-en1.akinator.com/ws/answer')
|
||||
.get('http://api-us1.akinator.com/ws/answer')
|
||||
.query({
|
||||
session: session.id,
|
||||
signature: session.signature,
|
||||
@@ -103,7 +103,7 @@ module.exports = class AkinatorCommand extends Command {
|
||||
async finish(channel) {
|
||||
const session = this.sessions.get(channel.id);
|
||||
const { body } = await snekfetch
|
||||
.get('http://api-en1.akinator.com/ws/list')
|
||||
.get('http://api-us1.akinator.com/ws/list')
|
||||
.query({
|
||||
session: session.id,
|
||||
signature: session.signature,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "41.1.3",
|
||||
"version": "41.1.4",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user