diff --git a/config.json.example b/config.json.example index 1fc8245..0437cd8 100644 --- a/config.json.example +++ b/config.json.example @@ -1,7 +1,13 @@ { - "tag": "#cringefilter", - "max_age": 90, - "instances": [ - "mastodon.social" - ] + "name": "cringebot", + "defaults": { + "tag": "#cringebot", + "app_name": "Cringebot", + "rate_limit": 1, + "poll_interval": 10, + "max_age": 90 + }, + "clients": { + "mastodon.social": {} + } } diff --git a/cringebot.service b/cringebot.service index c6f697d..3ebf9fe 100644 --- a/cringebot.service +++ b/cringebot.service @@ -1,12 +1,12 @@ [Unit] -Description=Fediverse Cringe Filter +Description=Fediverse Cringe Bot [Service] -User=cringefilter -WorkingDirectory=/usr/local/lib/cringefilter -ExecStart=/usr/bin/python3 /usr/local/lib/cringefilter/cringefilter.py +User=cringebot +WorkingDirectory=/usr/local/lib/cringebot +ExecStart=/usr/bin/python3 /usr/local/lib/cringebot/cringebot.py Environment=PYTHONUNBUFFERED=1 -SyslogIdentifier=cringefilter +SyslogIdentifier=cringebot Restart=always [Install]