Skip to content

vvakame/atproto-vvvot

Repository files navigation

vvvot (bot) living on Bluesky

@vvvot.bsky.social.

Usage

show your DID

@vvvot.bsky.social did

Bot responses your DID.

Hi, @vvakame.bsky.social ! your DID is "did:plc:wh4o4bn5ppuxn7saotd2xqzm"

show when your account was created (indexed)

@vvvot.bsky.social birthday

Bot responses when your account was created (indexed) at.

your indexedAt is 2023-04-07 12:48:35 (UTC) / 2023-04-07 21:48:35 (JST)

How does it work?

A simplified process flow is shown below.

sequenceDiagram
    participant Cloud Scheduler
    participant Cloud Run
    participant Bluesky
    
    Cloud Scheduler ->> Cloud Run: kick every 5min
        activate Cloud Run
            Cloud Run ->> Bluesky: app.bsky.notification.listNotifications
                activate Bluesky
                    Bluesky --> Cloud Run: result
                deactivate Bluesky
            alt if find new reply
                Note right of Cloud Run: send reply
                Cloud Run ->> Bluesky: com.atproto.repo.createRecord
                    activate Bluesky
                        Bluesky --> Cloud Run: result
                    deactivate Bluesky
            end
            Cloud Run ->> Bluesky: app.bsky.notification.updateSeen
                activate Bluesky
                    Bluesky --> Cloud Run: result
                deactivate Bluesky
            Cloud Run --> Cloud Scheduler: 200 OK
        deactivate Cloud Run
Loading

Why not use stream?

see this

Total Estimated Cost: USD 44.71 per 1 month

About

@vvvot.bsky.social bot implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •