Skip to content

orangebutblue/Foundry-Login-Notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Foundry Login Notification

Foundry Login Notification

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.

Installation

1. Install requirements:

  • python3 packages:
    • requests
    • watchdog

2. Modify the settings.json

  • Modify log_path and log_filename
  • Set notification_service either to telegram or discord
  • 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_id and bot_token in the settings.json
  • For Discord:
    • Go to your Discord server
    • Go to 'Server Settings' -> 'Integrations'
    • Webhooks -> New Webhook -> Copy Webhook URL
    • Fill out the webhook_url in the settings.json

3. Run the script

Run the script to see if it's working.

4. Install script as a service

  • 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
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages