Added contact based dest

This commit is contained in:
Alex Wolden
2025-04-13 22:19:08 -07:00
parent 1a9f6d1024
commit a1fb931200
5 changed files with 94 additions and 26 deletions

View File

@@ -16,7 +16,10 @@ async def main () :
await mc.commands.get_contacts()
repeater = mc.get_contact_by_name(REPEATER)
await mc.commands.send_login(bytes.fromhex(repeater["public_key"]), PASSWORD)
if repeater is None:
print(f"Repeater '{REPEATER}' not found in contacts.")
return
await mc.commands.send_login(repeater, PASSWORD)
print("Login sent ... awaiting")