In last post https://steemit.com/steemit/@jaka87/scripts-for-steem-bot-delegators-part-1 I showed script which trades SBD that you receive as reward for delegating to Steemit bot.
The next logical step is to power up this newly exchanged Steem and today I will show a script which does just that. Just like last time this one is written in Python aswell and needs Steem package for Python in order to run. This one is pretty straight forward and less complicated so I probably don't have to explain it. In case you need some help don't hesitate to ask .
from steem import Steem
from steem.commit import Commit
from steem.account import Account
s = Steem(keys=["YOUR WIF"])
username = 'YOUR USERNAME'
s = Steem()
account = Account(username,s)
balance = account.balances
my_steem= balance['available']['STEEM']
c= Commit(s)
return = c.transfer_to_vesting(amount=my_steem, to=username, account=username)
print(return)
I offcoarse don't run this manually but as a cron job once a day. In next post I will show a script which then delegates this new SP back to the bot so our future gains will be greater.