A bot that tracks and auto-deletes statuses on Mastodon/Pleroma accounts after a set time if they are cringe enough
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Thor 906d044b8c Boil bot lib down to essentials 3 years ago
secret Initial commit 3 years ago
state Initial commit 3 years ago
.gitignore Initial commit 3 years ago
README.md Update 'README.md' 3 years ago
bogofilter.py Fix timeslot bug, adjust bogofilter threshold 3 years ago
bot.py Boil bot lib down to essentials 3 years ago
config.json.example Latest changes 3 years ago
cringefilter.py Fix timeslot bug, adjust bogofilter threshold 3 years ago
cringefilter.service Initial commit 3 years ago

README.md

cringefilter

cringefilter is a bot that tracks and auto-deletes on Mastodon/Pleroma accounts according to a set maximum age, if they are bad enough. Tracking multiple instances simultaneously is possible. Once a status is flagged for retention, the bot will not check it again.

Installation (Linux)

Obtain root login shell

sudo -i

Install dependencies

apt install python3 bogofilter
pip3 install Mastodon.py html2text

Download cringefilter and make user account

git clone https://git.thj.no/thor/cringefilter.git /usr/local/lib/cringefilter
useradd -d /usr/local/lib/cringefilter -M -s /bin/bash -U cringefilter
chown -R cringefilter.cringefilter /usr/local/lib/cringefilter

Create configuration

cd /usr/local/lib/cringefilter
cp config.example.json config.json
editor config.json

Install systemd service

ln -s cringefilter.service /etc/systemd/system/cringefilter.service
systemctl enable cringefilter
systemctl start cringefilter

Management

# Initial setup / learning mode
python3 cringefilter.py -l

# Restart service
systemctl restart cringefilter

# Check service status
systemctl status cringefilter

# Monitor log output
journalctl -t cringefilter -f

Maintainer

The maintainer can be contacted at @thor@pl.thj.no.