Skip to content

Send a notification to a Discord room about the host machine's current public IP address.

License

Notifications You must be signed in to change notification settings

lidj22/discord-ip-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord IP Notification

Send a notification to a Discord room about the host machine's current public IP address.

Requirements: Linux, Docker

Usage

docker pull ghcr.io/lidj22/discord-ip-notification

Run (ensure Discord webhook URL is included):

docker run -e WEBHOOK_URL=$WEBHOOK_URL ghcr.io/lidj22/discord-ip-notification

A notification should pop up in the corresponding Discord room.

Cronjob (Daily Notifications)

Set up a cronjob to run this everyday.

Create script /root/send_ip_notification.sh (run this to send a notification manually):

#!/bin/bash
WEBHOOK_URL="your_webhook_url"
docker run -e WEBHOOK_URL=$WEBHOOK_URL ghcr.io/lidj22/discord-ip-notification

Run chmod 700 /root/send_ip_notification.sh, and add to crontab:

0 0 * * * /root/send_ip_notification.sh

Build from Source

Build the Docker image.

docker build -t discord-ip-notification .

Run the container to check for IP address and send a notification.

docker run -e WEBHOOK_URL=$WEBHOOK_URL discord-ip-notification

About

Send a notification to a Discord room about the host machine's current public IP address.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages