Skip to content

bacalhau-project/bacalhau-bluesky-bot-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator Bot

This is a super-simple Python script which is executed as part of the Bacalhau Bluesky Bot network.

When invoked, it will take the processed text of a Bluesky post that has mentioned the bot, and perform a calculation contained therein (if there is one).

Building

python3 -m venv ./VENV
source ./VENV/bin/activate
pip3 install -r requirements.txt

Running

source ./VENV/bin/activate
PROCESSED_POST=2^2 python3 main.py
// 4.00000000000000

PROCESSED_POST=2^BANANA python3 main.py
// 🔥🧮🔥

Extra Info

This script is available as a container on Docker Hub.

You can pull it with:

docker pull seanmtracey/bbb-calculator

... and run it with

docker run --rm -e PROCESSED_POST="3*3" seanmtracey/bbb-calculator:latest  

About

A super-naive calculator script for testing against the Bacalhau Bluesky Bots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published