"login" is a string bool, not a actual bool

This commit is contained in:
Kyler Eastridge
2025-06-23 10:55:58 -04:00
parent 17d72e33fe
commit 9f61067924

View File

@@ -77,7 +77,7 @@ class SimpleBot(EventTarget):
async def login(self, username, password):
loginHandle = await login.Login(username, password, isBot = True)
if loginHandle["login"] == False:
if loginHandle["login"] == "false":
logger.critical(f"Login failure: {loginHandle["message"]}")
raise ValueError("Incorrect username or password")