May 27, 2022

Telegram Bot for validator DeFund

In this article, we will tell you how the telegram bot for the validator works, what functions it has and how to configure it

The first thing we need to do is create a bot in Telegram
We can create it through @BotFather

Next, we need to find out your ID in the Telegram
We can do this through the bot @getmy_idbot

After creating the bot, we received its API and ID, which we will need to install it in the script parameters

curl -s https://raw.githubusercontent.com/nodersteam/cosmostestnet/main/tgbot/parametrs > parametrs.sh && chmod +x parametrs.sh && ./parametrs.sh

Run the parameter setting script

After setting all the parameters, we will only have to launch the bot by pressing the 2 key and paste command

*/1 * * * *  /bin/bash $HOME/tgbot/start.sh
Be sure to leave an empty line at the end of the command. After close it (ctrl+s ctrl + x)

Enter the periodic launch command in Cron and we test with a simple installation of the validator for a few seconds

after 10 seconds, I started the node again and received a notification about the node being out of sync

In a few seconds you will receive an alert on your phone

Using this bot you will be able to protect yourself from the fall of your node for a long time
What the bot is tracking:

  • Node stop
  • Steak change
  • Getting stuck on a block
  • Getting into jail\inactive
  • No connection to RPC

Thank you for your attention and enjoy using it! Uptime is our everything👌

[NODERS]TEAM