add lmdb database, update to new sdk

This commit is contained in:
Believethehype
2024-09-10 09:20:22 +02:00
parent 131cbea6f3
commit a2f482aa06
30 changed files with 187 additions and 157 deletions

View File

@@ -65,7 +65,7 @@ async def nostr_client():
print(f"Received new event from {relay_url}: {event.as_json()}")
if event.kind() == 7000:
print("[Nostr Client]: " + event.as_json())
elif 6000 < event.kind().as_u64() < 6999:
elif 6000 < event.kind().as_u16() < 6999:
print("[Nostr Client]: " + event.as_json())
print("[Nostr Client]: " + event.content())