statBot v2.1.0: Added delegation, delegator checking and delegatee checking

statBot is a utility discord bot being used in #teammalaysia, AUS/NZ and Steemph.cebu. This bot has features like cryptocurrency price check, cryptocurrency conversion rate (between crypto to crypto and crypto to fiat), and some query check into SteemSQL to get performance of a tag and delegator.



I have changed the repository name from superoo7/steem-discord to superoo7/statBot

Thanks #SteemBC and @justyy for helping me out in the SQL query.

Github Commits

Screen Shot 2018-04-28 at 9.26.35 AM.png

New Features

What feature(s) did you add?

  • Check Delegator and Delegatee of a Steem Account

Screen Shot 2018-04-27 at 11.43.02 PM.png
Screen Shot 2018-04-28 at 9.14.20 AM.png

  • Generate link for Delegation

Screen Shot 2018-04-28 at 9.15.30 AM.png
Screen Shot 2018-04-28 at 9.17.19 AM.png

How did you implement it/them?

For checking delegator, I added an SQL query to SteemSQL

SELECT
  delegator, vesting_shares, timestamp
FROM
  TxDelegateVestingShares
WHERE 
  delegatee = '${username}'
ORDER BY
  timestamp desc

For checking delegatee, I also added an SQL Query to SteemSQL

SELECT
  delegatee, vesting_shares, timestamp
FROM
  TxDelegateVestingShares
WHERE 
  delegator = '${username}'
ORDER BY
  timestamp desc

And using JavaScript, I parse out all the data into the latest SP delegation list

About this Projects

  • What is the project about?

This is a discord bot that are able to consume Steem API, check crypto price, convert crypto and fiat price, use of SteemSQL to carry out Query about Steem Blockchain.

  • Technology Stack

Node.js, TypeScript, MSSQL (SteemSQL)

  • Roadmap

    • Coversion of fiat to fiat
    • Added Testing (Jest)
    • Detail documentation on all the available commands
  • How to contribute?

    • Join the Discord Channel to test the bot
    • To contribute, first you need to have SteemSQL subscription. (check @steemsql or arcange)
    • Edit the .env file, and paste ur SteemSQL subscription details into it
    • Pull Request and Issue filling are welcomed on GitHub



Posted on Utopian.io - Rewarding Open Source Contributors

H2
H3
H4
3 columns
2 columns
1 column
6 Comments