Skip to content

riseupgroup/discord-ip-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP_Finder

Lets send you servers ip on reboot to a Discord Webhook

Install

Create script directory

mkdir /etc/rg_ipfinder

Download ip.bash to /etc/rg_ipfinder/ip.bash

curl https://raw.githubusercontent.com/riseupgroup/ip_finder/main/ip.bash > /etc/rg_ipfinder/ip.bash

Replace "<your discord webhook here>" on line 8 with your own webhook

nano /etc/rg_ipfinder/ip.bash

Make the script executable

chmod +x /etc/rg_ipfinder/ip.bash

It should look like this

discord_url="https://discord.com/api/webhooks/123123/asdasd"

Save with CTRL + X

Add the script to crontab

Open Crontab config as root (otherwiese you can't use @reboot)

sudo crontab -e

Add the script

@reboot /etc/rg_ipfinder/ip.bash

Save with CTRL + X

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages