This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon-block-bot/README.md

15 lines
646 B
Markdown
Raw Normal View History

2023-02-03 19:19:40 -08:00
# Mastodon Block Bot
This is a simple database-based block bot for Mastodon.
## Installation
1. Install plpython3. On Debian this is `apt install postgresql-plpython3-13`.
2. Run the script as the database administrator account (postgres) in your Mastodon database.
Database admin is required to create the Python extension and function.
2023-02-03 19:26:22 -08:00
For example: `sudo -u postgres psql mastodon < blockbot.sql`.
2023-02-03 19:19:40 -08:00
3. Insert a row into blockbot_config with your Mastodon hostname and a token for the account you want the blockbot to use. `INSERT INTO blockbot_config (hostname, token) VALUES ('freak.university', '...');`
## License
AGPLv3, see LICENSE.md.