fixed logged_users

This commit is contained in:
Amazed 2020-06-27 00:51:15 +02:00
parent 3d3580fa42
commit 6c5f73bc08
2 changed files with 4 additions and 3 deletions

View File

@ -3,5 +3,6 @@
"password": "testpassword",
"webhook": "https://discord.com/webhook/abc/def",
"logout": false,
"logged_users": true
"logged_users": true,
"check_seconds": 300
}

View File

@ -34,7 +34,7 @@ def is_logged_in():
return b'<li id="username_logged_in" class="rightside " data-skip-responsive="true">\n\t\t\t\t\t\t<div class="header-profile dropdown-container">\n\t\t\t\t<a href="./ucp.php" class="header-avatar dropdown-trigger"> <span class="username">' + USERNAME.encode("utf8") in BROWSER.response().get_data()
connected = []
connected = ["AmazedBot"]
def loop():
@ -137,4 +137,4 @@ if __name__ == "__main__":
print(datetime.datetime.now())
traceback.print_exc()
print("Sleeping...")
time.sleep(60*10)
time.sleep(config["check_seconds"])