Skip to content

Commit

Permalink
Review nostr tags
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Aug 7, 2024
1 parent df9ae19 commit 8d1bee7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions api/nostr.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ async def send_order_event(self, order):

robot_name = await self.get_robot_name(order)

event = EventBuilder(
Kind(38383), "", Tag.parse(self.generate_tags(order, robot_name))
).to_event(keys)
event.custom_created_at(order.created_at.timestamp())
event = (
EventBuilder(
Kind(38383), "", Tag.parse(self.generate_tags(order, robot_name))
)
.custom_created_at(order.created_at.timestamp())
.to_event(keys)
)
output = await client.send_event(event)
print(f"Nostr event sent: {output}")

Expand Down

0 comments on commit 8d1bee7

Please sign in to comment.