mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
http -> https
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://srv2.akinator.com:9157/ws/new_session')
|
.get('https://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://srv2.akinator.com:9157/ws/answer')
|
.get('https://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://srv2.akinator.com:9157/ws/list')
|
.get('https://srv2.akinator.com:9157/ws/list')
|
||||||
.query({
|
.query({
|
||||||
session: session.id,
|
session: session.id,
|
||||||
signature: session.signature,
|
signature: session.signature,
|
||||||
|
|||||||
Reference in New Issue
Block a user