mirror of
https://github.com/mroxso/timechain-nostr-bot.git
synced 2025-03-17 13:22:02 +01:00
update new block message
This commit is contained in:
parent
d583c9f866
commit
910231d4f4
5
main.py
5
main.py
@ -32,9 +32,10 @@ while True:
|
||||
block_height = data["height"]
|
||||
|
||||
if(block_height > old_block_height):
|
||||
print("Die aktuelle Bitcoin-Blockhöhe beträgt:", block_height)
|
||||
message = "⚡️ " + str(block_height) + " ⚡️"
|
||||
print(message)
|
||||
event = Event(
|
||||
content=str(block_height),
|
||||
content=str(message),
|
||||
public_key=private_key.public_key.hex()
|
||||
)
|
||||
private_key.sign_event(event)
|
||||
|
Loading…
x
Reference in New Issue
Block a user