Steemit Upvote Bot Coding Help Needed - More votes means More rewards

in #utopian-io8 years ago (edited)

image.png

Calling on all Bot Coders, Developers, and Enthusiasts for this task help request!

I am working on a bot based off of the coding of @randowhale from Steemit. The location of the original code and directions are are located on @p0o's repository HERE

Location for the Github Repository for my bot is here: https://github.com/cloh76/WhaleSong

This task help request is twofold. 1. to help figure out how to resolve errors and code/deploy the bot and 2. to help me code features which will hopefully make this bot more unique then existing bots and increase the amount of rewards and support it can provide the community.


1. Help identifying and addressing errors in the existing code

After cloning and updating the files and information in the .js file, I receive the following errors when trying to test out the Bot:

Unhandled rejection AssertionError [ERR_ASSERTION]: Expected version 128, instead got 38
    at Function.fromWif (C:\Users\cloh7\Desktop\WhaleSong\node_modules\steem\lib\auth\ecc\src\key_private.js:186:20)
    at toPrivateObj (C:\Users\cloh7\Desktop\WhaleSong\node_modules\steem\lib\auth\ecc\src\signature.js:185:37)
    at Function.signBufferSha256 (C:\Users\cloh7\Desktop\WhaleSong\node_modules\steem\lib\auth\ecc\src\signature.js:129:27)
    at Function.signBuffer (C:\Users\cloh7\Desktop\WhaleSong\node_modules\steem\lib\auth\ecc\src\signature.js:116:30)
    at Object.Auth.signTransaction (C:\Users\cloh7\Desktop\WhaleSong\node_modules\steem\lib\auth\index.js:119:23)
    at C:\Users\cloh7\Desktop\WhaleSong\node_modules\steem\lib\broadcast\index.js:52:64
    at tryCatcher (C:\Users\cloh7\Desktop\WhaleSong\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Users\cloh7\Desktop\WhaleSong\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise._settlePromise (C:\Users\cloh7\Desktop\WhaleSong\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromise0 (C:\Users\cloh7\Desktop\WhaleSong\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise._settlePromises (C:\Users\cloh7\Desktop\WhaleSong\node_modules\bluebird\js\release\promise.js:693:18)
    at Promise._fulfill (C:\Users\cloh7\Desktop\WhaleSong\node_modules\bluebird\js\release\promise.js:638:18)
    at Promise._resolveCallback (C:\Users\cloh7\Desktop\WhaleSong\node_modules\bluebird\js\release\promise.js:432:57)
    at Promise._settlePromiseFromHandler (C:\Users\cloh7\Desktop\WhaleSong\node_modules\bluebird\js\release\promise.js:524:17)
    at Promise._settlePromise (C:\Users\cloh7\Desktop\WhaleSong\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromise0 (C:\Users\cloh7\Desktop\WhaleSong\node_modules\bluebird\js\release\promise.js:614:10)

I am new to coding and these errors are a little over my head to try and figure out what is missing or wrong. Any insight and/or help programming this Bot would be appreciated.


2. Updating and adding to the code some new and unique features

Because there are so many "pay-for-upvote" and "bid-bots" out there, I wanted to try and be unique about my approach to deploying another bot to the community. The following additional features are what I would like help coding and adding to the Bot:

  1. Pay a daily return in SBD to users who delegate SP to the bot based on a percentage of the overall SP contribution (similar to minnowbooster and other bots.) - (Benefit for Investors)
  2. In addition to upvoting posts and ensuring profitability on top of the amount of SBD sent to the bot for an upvote, I want to reward users with 1 Token (Name to be determined) per use every time the bot is used to upvote a post. - (Benefit for users)
  3. The above mentioned tokens will be sent to the users: Either to their Bitshares account or the Bot can track number of uses separately (whichever is easier). Once they collect 50 tokens (# of tokens TBD) or 50 uses, they can trade them in for a full 100% Vote from another bot I am currently coding.

Because I am completely new to programming, I am seeking the help of more experienced coders (preferably in javascript). I am also open to additional suggestions or recommendations which will help ensure that this bot is profitable for all of its users.

Please include the .js file example as well as any required libraries and instructions to edit the code.

Please submit a Pull Request on Github and make a contribution through Utopian.io at the same time so you can be rewarded as well through the platform.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thanks for the hard work, it's great that some pinoy witnesses are doing hard work for the community. Keep up the good work and kudos!

Hey @cloh76 I am @utopian-io. I have just upvoted you at 15% Power!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

For WIF parameter get the "Posting Key". "The posting key is used for posting and voting. It should be different from the active and owner keys."

You can find it from https://steemit.com/@cointracking/permissions click on "Show private key" from Posting key.

Coin Marketplace

STEEM 0.08
TRX 0.29
JST 0.036
BTC 100906.41
ETH 3298.36
USDT 1.00
SBD 0.51