Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakobo/bias.is
A Bluesky Labeler and Search Bot for K-Pop
https://github.com/jakobo/bias.is
bluesky bluesky-bot bluesky-labeler
Last synced: 23 days ago
JSON representation
A Bluesky Labeler and Search Bot for K-Pop
- Host: GitHub
- URL: https://github.com/jakobo/bias.is
- Owner: jakobo
- License: other
- Created: 2024-11-14T01:52:45.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-01T15:04:57.000Z (27 days ago)
- Last Synced: 2024-12-01T16:19:56.892Z (27 days ago)
- Topics: bluesky, bluesky-bot, bluesky-labeler
- Language: TypeScript
- Homepage: https://bias.is
- Size: 818 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bias.is - Bluesky ❤️ Your Bias
This is based on the original [github-labeler](https://github.com/hipstersmoothie/github-labeler-bot), which provides both a persistent bot connection to Bluesky and a lightweight labeler service based on code from [Skyware](https://github.com/skyware-js/labeler).
# Wayfinding
- `src/server.ts`: Entry point. Starts both a labeler service and the bot connection
- `src/labeler.ts`: Creates a server that bsky will make requests to for information about labeled content
- `src/bot.ts`: Creates a bot that will respond to messages from usersBoth are started via `tsx` to avoid an extra build step.
# Development
- To develop, you'll need the following env vars set
| `env` | description | how to get it |
| :----------------- | :----------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `DID` | The labeler's DID | You'll need a test account for running the labeler. Once you have one, use a tool like [clearsky](https://clearsky.app) to get the DID |
| `LABELER_PASSWORD` | The labeler account's password | You should know this. It's recommended to use an app passowrd with DM support |
| `SIGNING_KEY` | The signing key for labels | Follow the [skyware labeler](https://skyware.js.org/guides/labeler/introduction/getting-started/) setup to create a signing key for your test account |
| `PORT` | (optional) The port to use | Provide yourself, defaults to 4001 |
| `DB_PATH` | The SQLite DB path | A persistent disk path, usually from your provider |