mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Update Akinator URL
This commit is contained in:
@@ -65,7 +65,7 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
|
|
||||||
async createSession(channel) {
|
async createSession(channel) {
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
.get('http://192.99.38.142:8126/ws/new_session')
|
.get('http://srv2.akinator.com:9157/ws/new_session')
|
||||||
.query({
|
.query({
|
||||||
partner: 1,
|
partner: 1,
|
||||||
player: 'website-desktop',
|
player: 'website-desktop',
|
||||||
@@ -88,7 +88,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 request
|
const { body } = await request
|
||||||
.get('http://158.69.225.49:8152/ws/answer')
|
.get('http://srv2.akinator.com:9157/ws/answer')
|
||||||
.query({
|
.query({
|
||||||
session: session.id,
|
session: session.id,
|
||||||
signature: session.signature,
|
signature: session.signature,
|
||||||
@@ -111,7 +111,7 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
async guess(channel) {
|
async guess(channel) {
|
||||||
const session = this.sessions.get(channel.id);
|
const session = this.sessions.get(channel.id);
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
.get('http://158.69.225.49:8152/ws/list')
|
.get('http://srv2.akinator.com:9157/ws/list')
|
||||||
.query({
|
.query({
|
||||||
session: session.id,
|
session: session.id,
|
||||||
signature: session.signature,
|
signature: session.signature,
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "80.1.1",
|
"version": "80.1.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user