spamguard counts Mastodon server sign ups and set the registration setting in approval mode if the configured threshold is reached (5 signups per minute is the default). It will post the new situation to the Mastodon server host.
- Python 3
- Mastodon's bot account with admin rights
Within Python Virtual Environment:
pip install -r requirements.txtto install all needed libraries.
python spamguard.py. First time run will ask parameters to configure everything.
Use your favourite scheduling method to set
python spamguard.pyto run every minute.