···88- `cmd/lexgen`: codegen tool for lexicons (Lexicon JSON to golang package)
99- `cmd/pds`: PDS daemon
1010- `cmd/stress`: connects to local/default PDS and creates a ton of random posts
1111+- `cmd/beemo`: slack bot for moderation reporting (Bluesky Moderation Observer)
1112- `gen`: dev tool to run CBOR type codegen
12131314Packages:
···9798Set the log level to be more verbose, using an env variable:
989999100 GOLOG_LOG_LEVEL=info go run ./cmd/pds
101101+102102+103103+## gosky basic usage
104104+105105+Running against local typescript PDS in `dev-env` mode:
106106+107107+ # as "alice" user
108108+ go run ./cmd/gosky/ --pds http://localhost:2583 createSession alice.test hunter2 > bsky.auth
109109+110110+The `bsky.auth` file is the default place that `gosky` and other client
111111+commands will look for auth info.
112112+113113+114114+## slack report bot basic usage
115115+116116+You need an admin token, slack webhook URL, and auth file (see gosky above).
117117+The auth file isn't actually used, only the admin token.
118118+119119+ # configure a slack webhook
120120+ export SLACK_WEBHOOK_URL=https://hooks.slack.com/services/T028K87/B04NBDB/oWbsHasdf23r2d
121121+122122+ # example pulling admin token out of `pass` password manager
123123+ export BSKY_ADMIN_AUTH=`pass bsky/pds-admin-staging | head -n1`
124124+125125+ # example just setting admin token directly
126126+ export BSKY_ADMIN_AUTH="someinsecurething123"
127127+128128+ # run the bot
129129+ GOLOG_LOG_LEVEL=debug go run ./cmd/beemo/ --pds https://pds.staging.example.com --auth bsky.auth notify-reports