A simple Philomena-based booru image fetching bot with a few extra additions for spice.
The provided settings.example.yml file is well-commented and should provide enough documentation for you to tweak the bot to your liking.
Copy settings.example.yml and database.example.yml as settings.yml and database.yml, and fill those out.
Create and import the database schema from structure.sql
sqlite3 ./bot.db
sqlite> .read ./db/structure.sql
Run the bot:
docker run --rm -it \
-v ./settings.yml:/opt/sweetie-bot/config/settings.yml \
-v ./database.yml:/opt/sweetie-bot/config/database.yml \
-v ./bot.db:/opt/sweetie-bot/db/bot.db \
-e DISCORD_BOT_TOKEN=your_discord_bot_token_here \
-e PHILOMENA_API_KEY=your_booru_api_key_here \
ghcr.io/derpibooru/sweetie-bot
- Linux (anything non-musl will probably work)
- Ruby 3.4.7
libsqlite3-dev
sudo apt-get install libsqlite3-dev...or your distribution's package manager. You're a grown-up adult, you can figure it out, probably.
First, clone the repository and navigate to it's folder
git clone https://github.com/furbooru/furbot
cd furbotInstall all the required packages using Bundler
bundle installCopy the example config file (located in the config/ folder) and modify it
cp settings.example.yml settings.ymlImport the database schema from structure.sql
sqlite3 ./db/bot.db
sqlite> .read ./db/structure.sql
Once you're done, you can run the bot by running
./bin/sweetie-botIf you want to load a specific configuration file, you can use -c to specify it's location
./bin/sweetie-bot -c settings.yml