No description
Find a file
2024-02-23 13:46:47 +10:00
auth meow 2024-02-19 21:41:28 +10:00
config Add danbooru url support 2024-02-22 13:49:26 +10:00
.gitignore meow 2024-02-19 21:41:28 +10:00
bot.py fix nsfw tagging 2024-02-23 13:46:47 +10:00
login.py meow 2024-02-19 21:41:28 +10:00
README.md update readme 2024-02-19 21:42:36 +10:00
requirements.txt meow 2024-02-19 21:41:28 +10:00
shell.nix meow 2024-02-19 21:41:28 +10:00

Fedi Board Bot

A bot that posts random images from image boards to Mastodon, Iceshrimp, Sharkey or Akkoma.

Config

Copy config/example.json.example and remove the .example from the end. All fields are explained in the file. Config names should not have any spaces.

When config-name is mentioned later do not include the .json extension.

Usage

Install the requirements. You should ideally do this in a venv.

pip install -r requirements.txt

For every new config generate a login token by running

python3 login.py <config-name> <application-name> <instance-url>

Run the bot by running

python3 bot.py <config-name>

Use the environment variables BOARD_API_KEY and BOARD_USERNAME to login with danbooru.