A chatbot for making node-specific queries, while featuring a simple alerting system. Currently supports:
- Cosmos
- Irisnet
Prerequisite
- node.js
$ curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ git clone https://github.com/jim380/Botelicious
$ cd Botelicious/Telegram
$ nano config.json
and fill in the empty field for"url"
. You may change the prefix too if you like.$ nano app.js
and fill in the empty field fortoken: ''
at line 128.- Optional:
$ nano app.js
and fill in the empty fields forapiKey = ''
andapiSecret = ''
at line 166-167 if you want to get Bitmex working.
$ cd Botelicious/Discord
$ nano config.json
and fill in the empty fields for"token"
and"url"
. You may change the prefix too if you like.
Sample config.json
{
"token" : "oalehuk4NzYkl9o4Nehtsp0n.qklunl.17jgsplzZK5lbGu6rhskauqyuk1",
"prefix" : "+",
"cosmos_node" : {
"url" : "111.11.11.11",
"ports" : ["26657", "26660", "1317"]
}
}
$ npm i
$ node app.js
$ npm i
$ docker build -t <image_name> .
$ docker run -i --name <image_name> <container_name>
Menu
Node Queries
Chain Queries
Alerts
LCD Queries
Bitmex
Append [IP] if querying a node that's not speficied in config.json
+cosmos last block (last block height the node is synced at)
+cosmos node info (node-id, address, voting power etc.)
+cosmos peers count (num. of peers)
+cosmos peers list (list all peers)
+cosmos validators (list all active validators)
+cosmos genesis validators (list all genesis validators)
+cosmos block [block#] (hash and proposer of the block; num. of txs in the block)
+cosmos proposals (all proposals with YES/NO ratio)
+cosmos txs [txn hash] (gas wanted & gas used in transaction)
+cosmos subscribe [validator addr] (get alerts when the validator in query misses blocks)
+cosmos unsubscribe [validator addr] (stop alerts)
---
The following commands require a running REST server
+cosmos keys (all keys available at the supplied account)
+cosmos mempool flush (flush flush)
+cosmos balance (account balance)
For use in Irisnet, simple replace +cosmos
with +iris
.
@aakatev
@jim380