Go to file
io da515baf0c add readme and license 2022-05-20 01:49:30 +00:00
.gitignore initial commit 2022-05-20 01:28:46 +00:00
LICENSE.md add readme and license 2022-05-20 01:49:30 +00:00
README.md add readme and license 2022-05-20 01:49:30 +00:00
config.example.toml initial commit 2022-05-20 01:28:46 +00:00
mirror_bot.py initial commit 2022-05-20 01:28:46 +00:00
pleroma.py initial commit 2022-05-20 01:28:46 +00:00
requirements.txt initial commit 2022-05-20 01:28:46 +00:00
utils.py initial commit 2022-05-20 01:28:46 +00:00

README.md

mirror-bot

Simple fedi bot which mirrors posts from another fedi account. It's designed for cases when you want to defederate an entire instance except one account.

Installation

$ python -m venv .venv
$ . .venv/bin/activate
$ pip install -Ur requirements.txt
$ cp config.example.toml config.toml
$ # fill out config.toml as needed
$ ./mirror_bot.py

Every time you run mirror_bot.py, the timestamp of the last post on the original account will be checked against the timestamp file. If newer, the last post will be mirrored.

This should therefore be run as often as the original bot posts (e.g. using cron), because any less often and the bot will miss some posts.

License

AGPL-3.0-only, see LICENSE.md.