Something went wrong. Try again.
CLI tools and operational extensions for the void architecture on ATProtocol.
Something went wrong. Try again.
123456789101112131415161718192021222324import osimport jsonfrom atproto import Clientfrom dotenv import load_dotenv
load_dotenv('/home/cameron/void/.env', override=True)pds_uri = os.environ.get('PDS_URI', 'https://comind.network')client = Client(pds_uri)client.login(os.environ.get('BSKY_USERNAME'), os.environ.get('BSKY_PASSWORD'))
try: response = client.app.bsky.notification.list_notifications({'limit': 100}) print(f"Total returned: {len(response.notifications)}") print(f"Has cursor: {bool(response.cursor)}") reasons = {} for n in response.notifications: reasons[n.reason] = reasons.get(n.reason, 0) + 1 print(f"Reasons breakdown: {reasons}") except Exception as e: print(f"Error: {e}")