fixed logged_users
This commit is contained in:
parent
6c5f73bc08
commit
d594c35d5d
5
main.py
5
main.py
@ -34,7 +34,8 @@ 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 = ["AmazedBot"]
|
||||
ignored = ["AmazedBot"]
|
||||
connected = []
|
||||
|
||||
|
||||
def loop():
|
||||
@ -59,7 +60,7 @@ def loop():
|
||||
for username_elem in div_username_online:
|
||||
user = username_elem.contents[0]
|
||||
|
||||
if user not in connected:
|
||||
if user not in ignored and user not in connected:
|
||||
new_users.append(user)
|
||||
print("User connected: %s" % user)
|
||||
webhook_data = {
|
||||
|
Loading…
Reference in New Issue
Block a user