bluesky-astronomy / astrobot

A bot that handles actions on the Astronomy feeds, like sign ups.
https://astronomy.blue
MIT License
3 stars 1 forks source link

Prototype of interacting with bsky notifications. #1

Closed ivastar closed 7 months ago

ivastar commented 7 months ago

Hi! This a prototype of what interacting with the notifications would look like.

I put everything in the client.py script because it is easier to call since this is not an installable package right now :(

client.get_notifications() runs the test.

There is a line that is currently commented that would (if uncommented) reset the notifications: client.app.bsky.notification.update_seen({'seen_at': last_seen_at})

I left it commented so I don't have to constantly create new notifications but I tested it and it works.

emilyhunt commented 7 months ago

Perfect, thank you so much for this!

And hmm, the packages that run in the cloud aren't installable as Digital Ocean doesn't support pyproject.toml files and they have to be installed differently anyway, but that's a fair point that it would be nicer for local development - will consider adding a pyproject.toml to the service projects.