this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

HACKING: brief note about 'gosky' auth

+30
+30
HACKING.md
··· 8 8 - `cmd/lexgen`: codegen tool for lexicons (Lexicon JSON to golang package) 9 9 - `cmd/pds`: PDS daemon 10 10 - `cmd/stress`: connects to local/default PDS and creates a ton of random posts 11 + - `cmd/beemo`: slack bot for moderation reporting (Bluesky Moderation Observer) 11 12 - `gen`: dev tool to run CBOR type codegen 12 13 13 14 Packages: ··· 97 98 Set the log level to be more verbose, using an env variable: 98 99 99 100 GOLOG_LOG_LEVEL=info go run ./cmd/pds 101 + 102 + 103 + ## gosky basic usage 104 + 105 + Running against local typescript PDS in `dev-env` mode: 106 + 107 + # as "alice" user 108 + go run ./cmd/gosky/ --pds http://localhost:2583 createSession alice.test hunter2 > bsky.auth 109 + 110 + The `bsky.auth` file is the default place that `gosky` and other client 111 + commands will look for auth info. 112 + 113 + 114 + ## slack report bot basic usage 115 + 116 + You need an admin token, slack webhook URL, and auth file (see gosky above). 117 + The auth file isn't actually used, only the admin token. 118 + 119 + # configure a slack webhook 120 + export SLACK_WEBHOOK_URL=https://hooks.slack.com/services/T028K87/B04NBDB/oWbsHasdf23r2d 121 + 122 + # example pulling admin token out of `pass` password manager 123 + export BSKY_ADMIN_AUTH=`pass bsky/pds-admin-staging | head -n1` 124 + 125 + # example just setting admin token directly 126 + export BSKY_ADMIN_AUTH="someinsecurething123" 127 + 128 + # run the bot 129 + GOLOG_LOG_LEVEL=debug go run ./cmd/beemo/ --pds https://pds.staging.example.com --auth bsky.auth notify-reports