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.

56 lines
1.2 KiB

# cringebot
`cringebot` 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.
3 years ago
## Installation (Linux)
#### Obtain root login shell
```
sudo -i
```
#### Install dependencies
```
apt install python3 bogofilter
pip3 install Mastodon.py html2text
```
#### Download cringebot and make user account
3 years ago
```
git clone https://git.thj.no/thor/cringebot.git /usr/local/lib/cringebot
useradd -d /usr/local/lib/cringebot -M -s /bin/bash -U cringebot
chown -R cringebot.cringebot /usr/local/lib/cringebot
3 years ago
```
#### Create configuration
```
cd /usr/local/lib/cringebot
3 years ago
cp config.example.json config.json
editor config.json
```
#### Install systemd service
```
ln -s cringebot.service /etc/systemd/system/cringebot.service
systemctl enable cringebot
systemctl start cringebot
3 years ago
```
#### Management
```
# Initial setup / learning mode
python3 cringebot.py -l
3 years ago
# Restart service
systemctl restart cringebot
3 years ago
# Check service status
systemctl status cringebot
3 years ago
# Monitor log output
journalctl -t cringebot -f
3 years ago
```
## Maintainer
The maintainer can be contacted at `@thor@pl.thj.no`.