Skip to content

JaquerEspeis/faircoin-cvn-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faircon CVN bot (faircoin-cvn-bot)

standard-readme compliant

Snap Status

A monitor bot for the Faircoin Cooperatively Validated Nodes.

Also known as Thomas, the bot.

Install

In any of the supported Linux distros:

sudo snap install faircoin-cvn-bot --edge

Usage

FAIRCOIN_RPC_USER=${FAIRCOIN_RPC_USER} FAIRCOIN_RPC_PASSWORD=${FAIRCOIN_RPC_PASSWORD} FAIRCOIN_CVN_BOT_TELEGRAM_TOKEN=${FAIRCOIN_CVN_BOT_TELEGRAM_TOKEN} faircoin-cvn-bot &

Where ${FAIRCOIN_RPC_USER} and ${FAIRCOIN_RPC_PASSWORD} are the credentials to connect through RPC to the FairCoin node, and ${FAIRCOIN_CVN_BOT_TELEGRAM_TOKEN} is the token for the Telegram bot.

Actions

Every three minutes, the bot checks the latest block and takes note of the CVNs that didn't sign it. After 5 missing blocks in a row, it sends a notification to the CVN operators group in Telegram. If a node has been down for 12 hours, it sends a reminder. When a node is back up, it also notifies the group.

Available commands

None, yet.

Maintainer

@elopio

Contribute

If you want to contribute, contact @elopio or open an issue.

License

GNU General Public License v3.0 or later (C) 2018 JáquerEspeis