Skip to content

The code for the Bacalhau Bluesky Bot which allows you to run jobs on the public network with a Bluesky Post

License

Notifications You must be signed in to change notification settings

bacalhau-project/bacalhau-bluesky-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BBB: Bluesky Bot for Bacalhau

Overview

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.


Features

  • 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.

Requirements

  • 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.

Setup

1. Clone the Repository

git clone https://github.com/seanmtracey/bacalhau-bluesky-bot
cd bacalhau-bluesky-bot

2. Install Dependencies

go mod tidy

3. Environment Variables

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

4. Build the Binary

go build -o bbb

5. Run the Bot

./bbb

About

The code for the Bacalhau Bluesky Bot which allows you to run jobs on the public network with a Bluesky Post

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages