The Beauty of Code

ombukuro(44)
Published in
#stach
Words
374
Reading
2 min
9y
Listen to this post
~2 min

There's this great feeling that comes with building something and watching it take shape and actually work! This was same feeling I got when I ran the node postpromoter.js command on my local machine and the damn thing worked!

It all started when I started learning AngularJS and got frustrated because npm install command always gave me issues. As with everything I lay my hands on, giving up and going back to it, I did this time with a more practical project yabamatt@yabamatt's postpromoter blog.

I and belemo@belemo have been talking about doing our own little contribution to the steem blockchain, as someone with a tech background, I came up with building a bid bot to make our posts and members of the steam9ja@steam9ja community.

So I went digging, studying steem API, searching for open source projects, then I found the perfect project. yabamatt@yabamatt's postpromoter, I cloned the project, edited the config.json file, ran the npm install command, lo and behold it worked without any issues, I ran the $ nodejs postpromoter.js command, it failed, then I realized most of this developers are using mac or linux while the poor me uses a window machine. Quickly I reverted to using node postpromoter.js and viola! Bingo! It worked.
First Succcess!First Success (Source: Screenshot of my machine's Console)

Moving on, it was time to test the bot. I asked my buddy belemo@belemo to transfer 0.05 SBD to test if the bot actually votes.

Voting Works!
Voting Confirmation (Source: Screenshot of my machine's Console)

Voting works! Ignore the vote value that account is basically new. Next step is to test for reversal of invalid bids.

Yup it works too!And Yess!! it works too! (Source: Screenshot of my machine's Console)

So I hit my buddy belemo@belemo up, "yo bro! we got ourselves a bot man!"

That's It! That's how we got our bot running on my Local Machine. Up next is to set it up on a live server! Well if you want to try out our locally hosted bot?, send 0.01SBD with the post link as a memo to drexx-dmitri@drexx-dmitri and it'd upvote your post when it's online and at 100% Voting Power. We are currently working on increasing the voting power of the bot. You're also welcome to delegate SP to the blog. You get a share of all revenues the bot generates.

The Beauty of Code | Ecency