Shihaam Abdul Rahman 5ad1166f08
Fix typo
2021-10-28 16:19:41 +05:00
2021-10-27 07:54:42 +05:00
2021-10-27 07:57:34 +05:00
2021-10-27 07:54:16 +05:00
2021-10-28 16:19:41 +05:00
2021-10-27 08:20:24 +05:00
2021-10-27 07:57:34 +05:00

Telegram Bot for Sending IP-address of a server if Dynamic IP has changed.

Inspired by indicozy/telegram-ping-ip

Getting started.

Requirements:

  • curl - Install with whatever package manager you use
  • screen - Optional requirement to run script in background.

Clone repo and Configure

git clone https://github.com/shihaamabr/telegram-ping-ip.git
cd telegram-ping-ip
chmod +x telegram-ping-ip.sh screen-telegram-ping-ip.sh
cp env.sample .env
  • Edit the contents of .env to your config (nano .env)

Running

Execute the script - Forground

./telegram-ping-ip.sh

Run the script in a screen - Background

./screen-telegram-ping-ip.sh

Run at system boot up

  • Add the following line to crontab, Run: crontab -e
@reboot /bin/bash /path/to/telegram-ping-ip/screen-telegram-ping-ip.sh

Future plans

  • create a daemon, idk, it seems interesting

Additional Information

FYI IT pings to whatismyip.shihaam.me by default, this can be configured in .env to use ifconfig.me or whatever else server.

Bugs

Description
No description provided
Readme 48 KiB
Languages
Shell 100%