Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kienvc authored Dec 28, 2023
1 parent d9231b3 commit 951f2d5
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
# ibc-client-bot
# ibc-client-bot
## Note: This bot is not ready for production
This bot is used to check IBC client expiration time and alert when a client has time left smaller than 2days. It uses Cosmos REST endpoint to get information.
Since there are many IBC clients created by mistake, instead of scan all of the network clients, the bot only checks specific clients defined by env.

# Install
- setup required lib
```
pip3 install -r requirements.txt
```
- create a bot using [BotFather](https://t.me/BotFather)
- setup env
```
export BOT_TOKEN=xxx
export CLIENT_LIST=xxx # A list contain tuples (clientId, REST endpoint). Example: CLIENT_LIST=[('07-tendermint-13', 'https://rest.cosmos.directory/aura'),('07-tendermint-17', 'https://rest.cosmos.directory/aura')]
export CHANNEL_ID=xxx # Telegram channel id for sending alerts
export POLL_INTERVAL=xxx # for check new message in telegram
```
- run bot
```
python3 bot.py
```
# How to use

Command to interact with bot:
```
/client_status - Check the status of clients.
/help - Get help with available commands.
```

0 comments on commit 951f2d5

Please sign in to comment.