Skip to content

antima/update_notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

update notifier

Run

As a docker container (recommended)

Build and run:

docker build -t update-notifier:latest .
docker run --name update-notifier --env telegram_token=<yout bot token> -d update-notifier

Or use one of our images from docker hub:

docker run --name update-notifier --env telegram_token=<yout bot token> -d abathargh/telegram-update-notifier:latest

As a script

git clone https://github.com/antima/update_notifier
cd update_notifier
virtualenv venv
pip install -r requirements.txt
export telegram_token=<your bot token>
python app.py

As a systemd service

You can find a systemd service template in the config/systemd directory, that can be used as a base to build a service file to use this app as a systemd service. You will have to set up a file with the environment variable for the token.

sudo cp config/systemd/telegram-updater.service /etc/systemd/system/ 
sudo systemctl enable telegram-updater
sudo systemctl start telegram-updater

Usage

  • /help -> show this message
  • /add [name] [url] [interval]-> start monitoring for the passed url identified by name, interval default is 15 mins
  • /remove [name] -> remove an url under monitoring, identified by its name
  • /list -> list all the urls under monitoring
  • /timer [name] -> return the current interval for the url identified by name
  • /set_timer [name] [interval] -> reset the monitor for the url with the new interval
  • /end -> stop monitoring every url

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published