Change contract for commands to return full event

This commit is contained in:
Alex Wolden
2025-04-14 11:10:59 -07:00
parent 39ea3cb3f3
commit 6fbf15885d
17 changed files with 231 additions and 104 deletions

View File

@@ -32,7 +32,7 @@ async def main():
print(f"Logging in to repeater '{args.repeater}'...")
login_event = await mc.commands.send_login(repeater, args.password)
if login_event and login_event.get("success") != False:
if login_event.type != EventType.ERROR:
print("Login successful")
# Send status request