A Telegram bot that helps you track domain expiration dates and sends notifications when domains are nearing expiry. The bot monitors your domains and alerts you 30 days before they expire, helping you avoid domain loss due to forgotten renewals.
You can run this bot on any server that has a public IP address.
And also you can use my bot: https://t.me/domainops_bot
- Add and manage multiple domains
- Check expiration dates manually or automatically
- Get notifications 30 days before domain expiry
- View list of tracked domains
- Remove domains from tracking
- Logging of all bot interactions
- Daily automated checks for expiring domains
- Python 3.8 or higher
- SQLite3
- A Telegram Bot Token (get it from @BotFather)
- Clone this repository to /usr/local/domainops:
cd /usr/local
git clone https://github.com/drfaustxx/domainops.git
cd domainops- Install required packages:
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt- Create and configure the environment file, and set your bot token:
cp .env.example .env
nano .env- Set up your cron job to run the bot daily:
chmod +x check_expiry.py
crontab -e
0 9 * * * /usr/bin/python3 /usr/local/domainops/check_expiry.py- Run the bot as a service:
sudo cp domainops.service /etc/systemd/system/
sudo systemctl enable domainops
sudo systemctl start domainops- Logs can be viewed with:
journalctl -u domainops