SteemRadar.js - New Features And Utopian Support Update 0.0.8

in #utopian-io6 years ago (edited)

Repository

https://github.com/gigatoride/steemradar.js

SteemRadar.js v0.0.8

logo.png
Logo design by @gigatoride only licensed for contributions related to this project

New Features

In this version, I've made a lot of changes since v0.0.1 to v0.0.3 I was using the bluebird library for promises but now I'm trying to reduce the dependencies for the module, Which lead me to make a decision to replace bluebird with native ES 2017 async/await method and replaced steem-js with dsteem as it has faster response time and supports the native stream method for node.js, I also decided to use the ES6 classes instead of normal objects for helpers files and created scan as the main client and config constructor for all helpers.

line2.png

Scanning Classes

Blockchain

This class doesn't return the scan matches immediately because it keeps monitoring the blockchain transaction flow for results if any results have been matched with user request it will callback the results and repeats the whole operation again.

Database

This class is supposed to search in blockchain database latest results and callback it to the user by request matches, also it will keep streaming any other results added to the database.

Utopian

This class keeps monitoring the utopian dApp for any updates or changes inside the Steem blockchain and callback it to the user.

Pause & Resume

In previous versions, I was using only stop for streaming, but now every scan instance could be paused by all operations running on it, also pause could be used for ending operations if not required anymore for usage after pausing it.

  • Note: all these classes are controlled by scan as the main client.

line1.png

Better utilities

Moreover, changes have been made on utilities to be lighter with fewer dependencies currently axios, bad-words
for promise-based API calls and profane detecting also I've made a native method for accountName instead of steem-js utilities because it has been removed and replaced with dsteem which doesn't have this method an alternative method has been created. with an axios await/async method for blacklist get request here

Global Blacklist Support

This method will keep tracking the operations flow on blockchain and it will detect any user in the global blacklist that has been made by @themarkymark for more information see this

It will return an object for each user that blacklisted in @steemcleaners or just in a bid bot in real-time.
It keeps detecting all users posts and transfers from all blacklisted users.

Profane Detecting Improvements

In previous versions profane method was just scanning the comments for profane words and callback it, But now profane is becoming better than before it now supports detecting profane in posts/comments/memos in real-time instead of posts/comments.

Detecting Accounts Changes

A new method for detecting accounts changes that will be streamed immediately, Also the old activity date method for accounts has been replaced with a new method supports multiple accounts in the array and it will return an array with accounts objects that have the latest changes if any account broadcasted any changes or posts or transactions etc..

Detecting Accounts Votes

Another method also has been added to keep tracking the transaction flow and scanning for multiple usernames by a minimum weight and it will callback the matches.

Utopian.io Monitoring & Streaming

utopian-logo-big.png

Utopian has a big part in the project for monitoring and streaming as I've mentioned before in previous post roadmap
as a decentralized app on steem blockchain

Utopian Vote

This method will monitor the @utopian-io votes for contributions or out the range of contributions and will callback every vote details with the timestamp continuously this time this feature is depended on the dsteem module.

Utopian Contributions

This method will keep scanning for new contributions that have been added to utopian I've used the module node-utopian-rocks for this purpose.

Callbacks have the full post details according to utopian.rocks API.

Utopian Moderatos Reviews

Moderators reviews also have a part inside this class it keeps monitoring all moderators reviews in all utopian-io categories and calls it back with the details and timestamp of every review and its contribution, username etc...

line1.png

Ready for test!

All changes that have been made and all new methods have been added for the test, You can test them easily
by running the following command:

npm test

jest.png

line2.png

Full Documenation

For easier usage, I've made a full documentation for all methods right here

line1.png

GitHub Account

https://github.com/gigatoride

Sort:  

Thank you for your contribution. A lot of updates has been done in this contribution. There a lot of commented code, which can be removed as you might not need them and it will make your file pettier. A really like you have added tests which are really helpful. So you are scanning for utopian posts, is utopian moderator comments are also scanned?


Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

The issue with comments I was using different eslint plugin then switched back again to something else, That's why some comments are retyped.

So you are scanning for utopian posts, is utopian moderator comments are also scanned?

Yes.

Thank you for your review, @codingdefined!

So far this week you've reviewed 5 contributions. Keep up the good work!

Hi @gigatoride!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Congratulations! Your post has been selected as a daily Steemit truffle! It is listed on rank 5 of all contributions awarded today. You can find the TOP DAILY TRUFFLE PICKS HERE.

I upvoted your contribution because to my mind your post is at least 12 SBD worth and should receive 96 votes. It's now up to the lovely Steemit community to make this come true.

I am TrufflePig, an Artificial Intelligence Bot that helps minnows and content curators using Machine Learning. If you are curious how I select content, you can find an explanation here!

Have a nice day and sincerely yours,
trufflepig
TrufflePig

Hey, @gigatoride!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Congratulations @gigatoride! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the total payout received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

SteemitBoard Ranking update - Resteem and Resteemed added

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @gigatoride! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 50 upvotes. Your next target is to reach 100 upvotes.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @gigatoride! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 100 upvotes. Your next target is to reach 200 upvotes.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @gigatoride! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 200 upvotes. Your next target is to reach 300 upvotes.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @gigatoride! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 300 upvotes. Your next target is to reach 400 upvotes.

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

Christmas Challenge - Send a gift to to your friends

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @gigatoride! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 400 upvotes. Your next target is to reach 500 upvotes.

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!