Improvement to frontrunbot

in utopian-io •  6 years ago  (edited)

FILE.jpg

Bug Fixes

  • Timer was not working properly

The timer for counting down to configured voting power appeared stuck with the same time. This is because it didn't update the amount of vp in realtime. Now I added the code and it fixed the issue.

function StartTimer() {
    let x = async () => {
        await getVP();
let nTimer = utils.mTimer(vp);
  • Better presentation of data in table form :

Screenshot_1.jpg

This is done by using cli-table 2 npm library which makes everything prettier and easier to look at :

    var Table = require('cli-table2');
    var table = new Table({
        head: ["index", "author", "permlinks"],
        wordWrap: true
    });

    for (var i = 0; i < min; i++) {
        table.push([i+1, authors[i], permlinks[i]]);
    }

    console.log(table.toString());
  • Extended list of frontrun posts to upvote

The frontrun bot was upvoting to a number of posts limit setted in config.json. And this make it to reloop over the old range of posts without proceeding to the new one. Frontrun bot will now attempt to upvote more posts but still preserving the configured amount of VP.

if (++j < permlinks.length && vp >= VPlimit) {
            myLoop(j);
            console.log('j1 in if loop : ' + j);
        }

My Project

What is the project about?

This project is to help those who wish to frontrun the posts that are available in steembottracker.com by @yabapmatt. Those who doesn't wish to manually upvote everytime can use this bot to earn some sizeable curation steem power. Front run posts are posts that are going to be hitted by big bid bots. So if you upvote it before they do, you can earn a sizeable amount of SP but depending on your vote weight of course. This bot will lessen your burden to check and upvote it everytime.

Technology Stack

Nodejs with npm library from steem, cli-table2 and axios.

How to contribute?

If you wish to work on this bot, you can contact me personally here. Or reach out to me at discord @tngflx. Thanks!



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  6 years ago 

Thank you for your contribution.


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

[utopian-moderator]

Hey @justyy, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

This post has been curated by TeamMalaysia Community :-

To support the growth of TeamMalaysia Follow our upvotes by using steemauto.com and follow trail of @myach

Vote TeamMalaysia witness bitrocker2020 using this link vote for witness

👍. I tried something similar by analyzing the memos of all SBD transfers to bot accounts. Didn’t know that steembottracker has a handy API for that.

That's a hell lot of a work. I tried that before too lol. I then stopped and look at the source code. And I got my answer :P Sometimes just need to ask for help.

Hello. Please follow and upvotes for me. Thank you very much

  ·  6 years ago (edited)

If you do that again, I'll flag your post to zero value. You have my warning.

Hey @tngflx! Thank you for the great work you've done!

We're already looking forward to your next contribution!

Fully Decentralized Rewards

We hope you will take the time to share your expertise and knowledge by rating contributions made by others on Utopian.io to help us reward the best contributions together.

Utopian Witness!

Vote for Utopian Witness! We are made of developers, system administrators, entrepreneurs, artists, content creators, thinkers. We embrace every nationality, mindset and belief.

Want to chat? Join us on Discord https://discord.me/utopian-io

Loading...