Notifications with Discord webhooks for admins
# Install deps
pip install -r requirements.txt
# Copy the base config file
cp config.py.dist config.py
# Edit it with your infos
$EDITOR config.py
# Run
python newRegs.py
python newTrends.py
# Add a cron like
# */10 * * * * cd ~/masto-notif && bash -c 'date ; python newRegs.py ; python newTrends.py' > cron.log 2>&1
This code is provided as-is and without intention of providing additional help.
There may be unannounced broken changes and no support will be provided.
Two external services are used in newRegs.py
:
- Stop Forum Spam is used to check if an IP or email is in their database.
- Verifier is used to check if a domain is valid and not used for disposable addresses, you'll need to signup to get a (free) API Key.