Skip to content

pantunes/lto-node-alerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LTO Node Alerts

This service sends notifications about Nodes that their balance reached a minimum threshold.

These notifications are sent in the Telegram channel LTO Node Alerts.

Pre-requisites

Installation

Install from source

Clone project repository:

$ git clone https://github.com/pantunes/lto-node-alerts.git
$ cd lto-node-alerts

Setup Python virtual environment:

$ virtualenv venv -p python3
$ source venv/bin/activate

Install package in develop mode:

pip install -e .

(Dependencies will be installed automatically from requirements.txt)

Start services

Bot

$ BOT_TOKEN_ID=<bot_id_token> bot

Scheduler

$ BOT_TOKEN_ID=<bot_id_token> GROUP_CHAT_ID=<GROUP_CHAT_ID> scheduler