wrong thing!
This commit is contained in:
parent
eb35855e9c
commit
6630971abd
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -42,8 +42,8 @@ function update() {
|
|||
if (html.includes("presence")) {
|
||||
var blah = html.substring(html.indexOf('presence">') + 10, html.length)
|
||||
json["presence"] = blah.substring(0, blah.indexOf("</span>"))
|
||||
} else if (html.includes("friend_status_online") && json.name != "nothing") {
|
||||
var blah = html.substring(html.indexOf('status_online">') + 15, html.length)
|
||||
} else if (html.includes("game_state") && json.name != "nothing") {
|
||||
var blah = html.substring(html.indexOf('game_state">') + 12, html.length)
|
||||
json["presence"] = blah.substring(0, blah.indexOf("</span>"))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue