Browse Source

自動 Follow を追加

kiriban
みてるぞ 2 months ago
parent
commit
756e5fde2f
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      main.py

+ 5
- 3
main.py View File

@@ -15,9 +15,11 @@ def check_notifications (


for notification in (client.app.bsky.notification.list_notifications () for notification in (client.app.bsky.notification.list_notifications ()
.notifications): .notifications):
if ((not notification.is_read)
and (notification.reason in ['mention', 'reply'])):
uris += [notification.uri]
if not notification.is_read:
if notification.reason in ['mention', 'reply']:
uris += [notification.uri]
elif notification.reason == 'follow':
client.follow (notification.ahthor.did)


client.app.bsky.notification.update_seen ({ 'seen_at': last_seen_at }) client.app.bsky.notification.update_seen ({ 'seen_at': last_seen_at })




Loading…
Cancel
Save