Remove Discord messages in select channels after a timeout. Fails fast, to be restarted. Handles downtime.
-
Create a Discord app with
SCOPES
bot
,PERMISSIONS
Manage Messages
. In theBot
tab, get a token for it. -
Install the contents of this repo into
/usr/local/share/purgatorial
(or tweakpurgatorial.service
), where.env
contains:
TOKEN=CENSORED.CENSORED.CENSORED
CHANNEL_IDS=1234,5678
MSG_TIMEOUT=3600000
-
Share the install link from the
Installation
tab 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