Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vvakame/atproto-vvvot
@vvvot.bsky.social bot implementation
https://github.com/vvakame/atproto-vvvot
bluesky
Last synced: 3 months ago
JSON representation
@vvvot.bsky.social bot implementation
- Host: GitHub
- URL: https://github.com/vvakame/atproto-vvvot
- Owner: vvakame
- License: mit
- Created: 2023-04-13T14:20:23.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-12T01:53:53.000Z (3 months ago)
- Last Synced: 2024-10-19T01:23:53.329Z (3 months ago)
- Topics: bluesky
- Language: Go
- Homepage:
- Size: 153 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# vvvot (bot) living on Bluesky
[@vvvot.bsky.social](https://staging.bsky.app/profile/vvvot.bsky.social).
## Usage
### show your DID
```text
@vvvot.bsky.social did
```Bot responses your [DID](https://atproto.com/guides/identity).
```text
Hi, @vvakame.bsky.social ! your DID is "did:plc:wh4o4bn5ppuxn7saotd2xqzm"
```### show when your account was created (indexed)
```text
@vvvot.bsky.social birthday
```Bot responses when your account was created (indexed) at.
```text
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.
```mermaid
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
```### Why not use stream?
[see this](https://cloud.google.com/products/calculator/#id=7eae8fe9-3e43-48cc-b0c0-17b9f5b34c91)
> Total Estimated Cost: USD 44.71 per 1 month