Skip to content

Notifications with Discord webhooks for admins

Notifications You must be signed in to change notification settings

im-in-space/masto-notif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Masto-Notif

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

Important note

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.

About

Notifications with Discord webhooks for admins

Resources

Stars

Watchers

Forks