Go to file
GeneralHurricane a3d0908e19 add failure logging :( 2022-12-19 16:04:45 -06:00
bible_databases@af7500915b add db submodule 2022-12-17 22:19:43 -06:00
.dockerignore IT WORK! 2022-12-18 21:22:21 -06:00
.gitignore thy word is a lamp unto my feet 2022-12-17 22:08:07 -06:00
.gitmodules add db submodule 2022-12-17 22:19:43 -06:00
Dockerfile IT WORK! 2022-12-18 21:22:21 -06:00
README.md add failure logging :( 2022-12-19 16:04:45 -06:00
bible.go IT WORK! 2022-12-18 21:22:21 -06:00
docker-compose.yaml IT WORK! 2022-12-18 21:22:21 -06:00
go.mod add failure logging :( 2022-12-19 16:04:45 -06:00
go.sum add failure logging :( 2022-12-19 16:04:45 -06:00
main.go add failure logging :( 2022-12-19 16:04:45 -06:00
rdrama.go add failure logging :( 2022-12-19 16:04:45 -06:00

README.md

BibleBot

Written by GeneralHurricane and GPT-CHAT (any errors are the fault of GPT-CHAT)

Info

BibleBot regularly scans posts and comments for things that look like Bible refences (?P<prefix>\w*?)? *(?P<book>[a-zA-Z]+?)\s?(?P<chapter>\d{1,3})(?::(?P<startverse>\d{1,3})(?:-(?P<endverse>\d{1,3})?)?), then supplies them from the MariaDb container. It supports World English Bible by default, but has options for KJV, ASV, and a few more public domain translations.

Setup

BibleBot relies on scrollmapper/bible_databases for references. Download the databases with:

git submodule init
git submodule update

Ensure Docker and docker-compose are installed

Create a file called .env and add the following to it:

RDRAMA_API_TOKEN=
RDRAMA_URL=https://rdrama.net
MARIADB_RANDOM_ROOT_PASSWORD=yes
MARIADB_USER=admin
MARIADB_PASSWORD=mysafeadminpassword
MARIADB_DATABASE=bible
BIBLEDB_HOST=bibledb
BIBLEBOT_ID=
PUSHBULLET_KEY=
PUSHBULLET_DEVICE_ID=

Fill in your RDRAMA_API_TOKEN and BIBLEBOT_ID. You can change the user and password for the MARIADB - both containers will pick up the same config. Optionally add a Pushbullet key and device ID if you want to get a notification when BibleBot inevitably crashes. It sorta uses backoff and retry on failed API calls, but not enough really. Feel free to open a PR!