Sends Slack webhook alerts for Bluesky messages using Jetstream.
export BSKY_APP_PASSWORD=asdf-asdf-asdf
export SLACK_WEBHOOK_URL=https://tailscale.slack.com/...
go run ./cmd/bsky-webhook/ -bskyHandle me.example.com -watchWord "pangolin"
These configuration options are available as command-line flags and environment variables. All of them are optional.
Here's the complete table based on the provided Go code:
Command-line flag | Environment variable | Default value | Description |
---|---|---|---|
-addr |
JETSTREAM_ADDRESS |
Rotation of all public jetsream servers | The jetstream hostname to connect to. |
-bskyHandle |
BSKY_HANDLE |
none | The Bluesky handle of the account that will make API requests. |
-bskyAppPassword |
BSKY_APP_PASSWORD |
none | The Bluesky app password for authentication. |
-slackWebhookUrl |
SLACK_WEBHOOK_URL |
none | The Slack webhook URL for sending notifications. |
-bskyServerUrl |
BSKY_SERVER_URL |
"https://bsky.network" | The Bluesky PDS server to send API requests to URL. |
-watchWord |
WATCH_WORD |
"tailscale" | The word to watch out for; may support multiple words in the future. |