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