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.

47 lines
1.1 KiB

3 years ago
# 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
```
#### 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
```
# 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`.