A simple python Discord bot that retrieves information from the PascalCoin blockchain using JSON RPC.
Pascal JSON RPC Documentation: RPC
Feel free to add more functions using the RPC documentation above
The bot doesn't require having an account or private keys in the wallet, as long as the wallet is running and accepting rpc requests.
Works on both linux and windows nodes.
In order for the bot to make RPC calls, a PascalCoin wallet/node must be installed and running locally or remotely with an open Port for the RPC connection.
For the bot to be able to retrieve information older than the current safebox you need to install the entire blockchain using the blockchainstream zip file and extracting it to the Data directory.
For Wallet installation guide see:
Sourceforge link to download the entire blockchain files:
$ sudo apt-get update
$ sudo apt-get install python3.6pip install requests
pip install discord
pip install pycoingecko This is needed for the bot to login to discord, token can be retrieved from discord developer portal:
More Info Discord Developer Portal
For non interactive mode, use screen to run the bot then deattach
python3 bot.py