BBB is a bot that listens for mentions on Bluesky, detects specific commands, and executes jobs on the Bacalhau distributed compute network. It replies to users with execution details, including output and links to resources.
- Command Detection: Detects commands in mentions that follow the format:
@<username> job run <URL>
. - Job Dispatch: Retrieves the job file from the provided URL, processes it, and submits it to Bacalhau.
- Execution Monitoring: Fetches execution details, including output, and replies to users with results.
- Hyperlinked Replies: Automatically includes clickable links in replies for documentation and resources.
- Persistent Responses: Keeps track of already responded mentions to avoid duplicate replies.
- Go: Version
1.22.2
or later. - Bacalhau Host: The Bacalhau network hostname must be provided.
- Bluesky Account: The bot must be authenticated with valid credentials.
git clone https://github.com/seanmtracey/bacalhau-bluesky-bot
cd bacalhau-bluesky-bot
go mod tidy
Create a .env file in the root directory and add the following:
BLUESKY_USER=your-bluesky-username
BLUESKY_PASS=your-bluesky-password
BACALHAU_HOST=bootstrap.production.bacalhau.org:1234
go build -o bbb
./bbb