This is a simple watchdog for Foundry VTT. It will monitor the Foundry VTT log file and send a Telegram or Discord notification when a user logs in.
- python3 packages:
- requests
- watchdog
- Modify
log_pathandlog_filename - Set
notification_serviceeither totelegramordiscord - For Telegram:
- Get your Telegram Chat ID (for example, talk to
@getidsbot) - Create a bot and get the bot token (talk to
@BotFather) - Talk to your but at least once, so it's able to message you (
/start) - Fill out the
chat_idandbot_tokenin the settings.json
- Get your Telegram Chat ID (for example, talk to
- For Discord:
- Go to your Discord server
- Go to 'Server Settings' -> 'Integrations'
- Webhooks -> New Webhook -> Copy Webhook URL
- Fill out the
webhook_urlin the settings.json
Run the script to see if it's working.
- Modify the foundry_watchdog.service to point to the correct path
- Copy foundry_watchdog.service to /etc/systemd/system/
- enable and start the service
systemctl enable foundry_watchdog.service systemctl start foundry_watchdog
