Requires python3.7+ with pip
Run $infonode command in DM or any channel with panda-bot present
cd ~
git clone https://github.com/fat-panda-club/info-node.git
cd info-node
sudo apt-get install python3-pip -y
sudo apt-get install python3-setuptools -y
python3 -m pip install wheel
python3 -m pip install -r requirements.txt
vi panda_info_node.py
Insert values as follows:
| Attribute | Description |
|---|---|
| CURRENCY_TICKER | The ticker of your currency registered on panda-bot |
| FAT_PANDA_CLUB_API_KEY | panda-bot API key which you can obtain with $infonode |
| INFO_NODE_HOST | IP of the live node |
| INFO_NODE_PORT | Port number of the live node |
| INFO_NODE_RPC_USERNAME | RPC User of the live node |
| INFO_NODE_RPC_PASSWORD | RPC Password of the live node |
The RPC settings are generally set in the daemon config similarly to below:
rpcuser=user
rpcpassword=pass
rpcport=123
rpcallowip=1.2.3.4/32
staking=0
This IP is the host/VM which will be running the info-node script
Trigger every 5 minutes, replace with path to python3 and script location where applicable
*/5 * * * * /usr/bin/python3 ~/info-node/panda_info_node.py >> ~/panda_info_node.log 2>&1
Set up your blockchain node on the same or an alternate VPS with the configuration from above steps Keep this node updated and in sync to ensure the correct stats are presented by panda-bot
The script will send your live node metric to panda-bot on average every 5 minutes, please do not increase the frequency as it will be rejected
If you'd like extra metrics to be monitored please contact us via Discord and make a Pull Request