Skip to content
Botelicious. Make sure you spell it with only one "o"
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Discord
Telegram
.gitignore
LICENSE
README.md
data-util.js
http-util.js
temp.json

README.md

Botelicious - ;)

A chatbot for making node-specific queries, while featuring a simple alerting system. Currently supports:

  • Cosmos
  • Irisnet

Downloads

Prerequisite

  • node.js
    $ curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
    $ sudo apt-get install -y nodejs
  1. $ git clone https://github.com/jim380/Botelicious

Configuration

Telegram

  1. $ cd Botelicious/Telegram
  2. $ nano config.json and fill in the empty field for "url". You may change the prefix too if you like.
  3. $ nano app.js and fill in the empty field for token: '' at line 128.
  4. Optional: $ nano app.js and fill in the empty fields for apiKey = '' and apiSecret = '' at line 166-167 if you want to get Bitmex working.

Discord

  1. $ cd Botelicious/Discord
  2. $ 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"]
  }
}

Deploy

Method 1 – from source

  1. $ npm i
  2. $ node app.js

Method 2 – via docker

  1. $ npm i
  2. $ docker build -t <image_name> .
  3. $ docker run -i --name <image_name> <container_name>

Command Glossary

Telegram

Menu
Menu
Node Queries
Node Queries
Chain Queries
Chain Queries
Alerts
Alerts
LCD Queries
LCD Queries
Bitmex
Bitmex

Discord

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.

Contact

@aakatev
@jim380

You can’t perform that action at this time.