mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix Akinator
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "153.1.0",
|
||||
"version": "153.1.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -31,11 +31,11 @@ class Akinator {
|
||||
this.session = text.match(/session: '(.+)'/)[1];
|
||||
this.signature = text.match(/signature: '(.+)'/)[1];
|
||||
this.answers = [
|
||||
decodeHTML(text.match(/<a class="li-game" href="#" id="a_yes" onclick="chooseAnswer\(0\)">(.+)<\/a>/)[1]),
|
||||
decodeHTML(text.match(/<a class="li-game" href="#" id="a_no" onclick="chooseAnswer\(1\)">(.+)<\/a>/)[1]),
|
||||
decodeHTML(text.match(/<a class="li-game" href="#" id="a_dont_know" onclick="chooseAnswer\(2\)">(.+)<\/a>/)[1]),
|
||||
decodeHTML(text.match(/<a class="li-game" href="#" id="a_probably" onclick="chooseAnswer\(3\)">(.+)<\/a>/)[1]),
|
||||
decodeHTML(text.match(/<a class="li-game" href="#" id="a_probaly_not" onclick="chooseAnswer\(4\)">(.+)<\/a>/)[1])
|
||||
decodeHTML(text.match(/<a class="li-game" href="#" id="a_yes" data-index="0">(.+)<\/a>/)[1]),
|
||||
decodeHTML(text.match(/<a class="li-game" href="#" id="a_no" data-index="1">(.+)<\/a>/)[1]),
|
||||
decodeHTML(text.match(/<a class="li-game" href="#" id="a_dont_know" data-index="2">(.+)<\/a>/)[1]),
|
||||
decodeHTML(text.match(/<a class="li-game" href="#" id="a_probably" data-index="3">(.+)<\/a>/)[1]),
|
||||
decodeHTML(text.match(/<a class="li-game" href="#" id="a_probaly_not" data-index="4">(.+)<\/a>/)[1])
|
||||
];
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user