https://github.com/thecodedrift/bias.is
A Bluesky Labeler and Search Bot for K-Pop
https://github.com/thecodedrift/bias.is
bluesky bluesky-bot bluesky-labeler
Last synced: 3 months ago
JSON representation
A Bluesky Labeler and Search Bot for K-Pop
- Host: GitHub
- URL: https://github.com/thecodedrift/bias.is
- Owner: thecodedrift
- License: other
- Created: 2024-11-14T01:52:45.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-16T15:06:13.000Z (3 months ago)
- Last Synced: 2025-03-16T16:23:08.147Z (3 months ago)
- Topics: bluesky, bluesky-bot, bluesky-labeler
- Language: TypeScript
- Homepage: https://bias.is
- Size: 1.41 MB
- 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 |