Remove Discord messages in select channels after a timeout. Fails fast, to be restarted. Handles downtime.
-
Create a Discord app with
SCOPESbot,PERMISSIONSManage Messages. In theBottab, get a token for it. -
Install the contents of this repo into
/usr/local/share/purgatorial(or tweakpurgatorial.service), where.envcontains:
TOKEN=CENSORED.CENSORED.CENSORED
CHANNEL_IDS=1234,5678
MSG_TIMEOUT=3600000
-
Share the install link from the
Installationtab with your servers' admins. -
Start running with
doas useradd -rms /usr/bin/nologin purgatorial && doas ln -sf $PWD/purgatorial.service /etc/systemd/system/ && doas systemctl enable --now purgatorial