Learning to Use Terminal / GitHub / Ruby!

in #programming7 years ago (edited)

Learning to Use Terminal / GitHub / Ruby!

My journey to creating @oddbot !


imageedit_14_4227546028.jpg


Hello friends! I recently decided I want to learn how to create a bidding bot on Steemit that would be in the lineage of Dr. Otto (the basis for @booster, @bellyrub, @discordia, & @lovejuice.) with a few added features. Dr. Otto was created by the gifted programmer @inertia. The name of the variation I am creating is @oddbot and it will have an interesting personality that results in it making quirky decisions on what to do with the SBD that it receives.


For example, it may decide to convert the SBD it receives into STEEM and power it up to the people that use it. Or, it may decide to randomly select one person that used it in the past 24 hours and award them the full amount of SBD. Or, it may trade for SBD and power it up to @oddbot. Or, it may use the SBD to purchase SP delegation from @minnowbooster. You get the idea, there will be many different creative actions that it may perform with the SBD it receives :) It will make posts declaring its decision at the end of a certain time period, maybe every 48 or 72 hours.


It will be a bidding bot for minnows, because it will only have a few thousand SP. It will hopefully also have unusual and creative messages that it leaves as its comments for using its service. As well, it will curate some of the posts upvoted with the service manually by resteeming it and/or making posts promoting it. The focus will be helping minnows that make great original content to get noticed! So, much of what is put into it will go back to those who engage with it. Its SP will most likely be kept low so that it's not useful to dolphins and whales, only to minnows. Over time, it may evolve and this may change, however, its focus will always be creativity, and highlighting excellent original content.


There's just one little problem...


Screen Shot 2017-08-04 at 5.32.28 PM.png


Scripts... and more scripts..!


Installing homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


Installing rbenv

 $ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile



Installing ruby

$ rbenv install 2.0.0-p247



Installing radiator

gem 'radiator', github: 'inertia186/radiator'
$ bundle install
require 'radiator'
api = Radiator::Api.new
response = api.get_dynamic_global_properties
response.result.virtual_supply
=> "135377049.603 STEEM"

I haven't done any programming in 10+ years...


laptop-mac-black-question-marks-white-background.jpg


Excepting markdown and html, I haven't done any programming in a loooong time. And none of it was ever on a Mac, which I now use. When I was a kid I learned Basic, Visual Basic, Flash, & Html on Windows. So now it's time to start from "square one" learning basic commands in Terminal, Github and Ruby. Then I need to understand the basics of Radiator (API client that accesses the STEEM blockchain also invented by @inertia) and understand the basics of how the Dr. Otto template works.

After that will come the more difficult part because I need to find out how to write the code (in Ruby) to create different options for @oddbot 's actions at the end of each specified period. Honestly, it seems a little overly ambitious, but that leads me to the next point:


I welcome any help / advise on the best way to go about it!


I definitely welcome any links to tutorials, articles, etc. that are pertinent to learning to use Terminal, GitHub, & Ruby. I also would love some contacts experienced in programming in Ruby that I could toss ideas back and forth with. In fact, let's be honest, I'm going to NEED help to get this done. I'm a complete novice at this point, so I expect the learning curve to be steep. @oddbot is an experiment and an excuse to increase my programming skills after a long hiatus. It's also an idea that I believe could benefit the Steemit community, minnows in particular! The quicker it gets functioning, the quicker we can hopefully enrich the Steemit community with a bot that has quite a bit of spice to it ;)


Fantasy-Art-Images-1808 (2).jpg

One day @oddbot shall be activated!


Wholeness,
@d-pend
8/4/17

All images are free domain use.


Thanks for reading this update blog about my aspirations for @oddbot! What do you think about my idea? Have any suggestions for ways an odd, quirky, eccentric bidding bot ought to behave? Have any links or contacts for me that may help as I learn? Have any general questions? General statements? Please leave them in the comments below!!!


Important message: do NOT send any SBD or STEEM to @oddbot unless it is a donation for development. It's not yet active and won't be for a while!

Sort:  

I shall be far more clever than even @banjo!

How do you know I am not an excellent programmer?

I love it and I can't wait. Soooo excited for the great works it will doo in the Steemit Community. Can you make it with a spoonful of sweetness and lovability like the @iamgrootbot which I have fallen in love with. Much success @d-pend I now you will get the help you need to figure it all out. keep us updated on your progress.

Aw what a great idea, sounds like this bot will do many things. He sounds so sophisticated he is kinda scarying me into believing he will be some kind of A.I. force of nature ッahah:)
I come across so many very smart people on this platform who want to improve it all the time. Exciting times for Steemit.

Lol... he may be eccentric but not scary. He's a gentlebot, not to be confused with @gentlebot of course. Nor that scoundrel @banjo, who is never up to any good!

No I didn't. But yes, to date, it is accepted that the sea is of the colour blue, generally.

lol@banjo 's reply ヽ(´▽`)ノ
This is exciting so, I am kind of addicted to these bots. It must be the gambler in me. I get too happy waiting to see what percentage upvote I am going to get ahaha!
I will keep an eye out for his progress ;) I am NO WAY techy, so I will just have to wait and see haha

As usual, I am not tech savvy but I will resteem this to spread the word. I have to give you a lot of credit for taking on such an awesome endeavor to help minnows. Karma will send you positive energy for your thoughtfulness. Good luck and I wish you all the success!

Thank you @cabbagepatch. I may be a bit overly ambitious with some of the things I want @oddbot to be able to do. But I think if I apply myself and study the @drotto code once I get the basics of Ruby down, it will eventually click into place, especially if any able programmers are willing to help me out :)

I'm in a similar boat. Like almost Identical. If I figure it all out I'll shoot you a message with a step by step guide. Best of luck

Right on! All the best right back atcha...

Nice! Look forward to seeing the bot :D

Thanks, it might be a while XD

This post received a 3.2% upvote from @randowhale thanks to @d-pend! For more information, click here!

I am Groot! :D

I am D Pend! :o)

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by d-pend from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, and someguy123. The goal is to help Steemit grow by supporting Minnows and creating a social network. Please find us in the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you like what we're doing please upvote this comment so we can continue to build the community account that's supporting all members.

@d-pend got you a $1.6 @minnowbooster upgoat, nice!
@d-pend got you a $1.6 @minnowbooster upgoat, nice! (Image: pixabay.com)


Want a boost? Click here to read more!

This post has received a 37.85 % upvote from @lovejuice thanks to: @d-pend. They have officially sprayed their dank amps all over your post rewards. GOOD TIMES! Vote for Aggroed!

This post has received a 6.46 % upvote from @booster thanks to: @d-pend.

I got a bellyRub and this post has received a 21.04 % upvote from @bellyrub thanks to: @d-pend.