Making useless Python bots by nnnarvaez

View this thread on steempeak.com
· @nnnarvaez · (edited)
$0.42
Making useless Python bots
I like doing stuff and since i cannot see or post or do anything anymore in bearshares because i annoyed the most annoying person in crypto social blogging platforms and i was bored... 

I made a python bot that requests my account balances, but well i liked to see the account balance and since I have 4 accounts censored in the BS interface it made for a nice green screen with numbers.

<center>![](https://cdn.steemitimages.com/DQmWgTxU3riCTAAwhpmyrGUUyyV5aJJEpAVeJQ78Cpi5xyN/image.png)</center>

So I put the balance in an infinite while loop... That way i could see my account balance several times and the green screen will move... 

It is nice, but i told myself what good it is... Some of the accounts have 0 balance and i cannot post anymore to earn rewards, i can only curate and remain silent witness TOP10... 

So it occurred to me that those accounts might become inactive and according to european laws, inactive accounts can have their assets frozen... That is not good... 

So i added a merry go round logic to move my assets from one account to the next... This way the accounts are not dormant, and might even get BSD interest for the brief amount of time the BSD transit around the wallet. 

I think it is a nice strategy to keep a rotating capital, especially if you are afraid that your assets can be seized. 

# Money mover code:
 
```
from bear import Bear
bsd =0
while bsd < 10000:
    memo = "Rotating Capital, Activo circulante"
    llaves = {1:("nnarvaez","key"),2:("voter","key"),3:("venezuela","key"),4:("python","key")}
    for u in llaves:
        if u < len(llaves):
            bear = Bear(keys = llaves[u][1]) # active
            bsd = float(str.split(bear.beard.get_account(llaves[u][0])['bsd_balance'])[0])
            bearsb = float(str.split(bear.beard.get_account(llaves[u][0])['balance'])[0])   
            print(llaves[u][0],bsd, bearsb,'\n\n')
            if bsd > 0 and llaves[u][0] != 'python':
                t = bear.commit.transfer(llaves[u+1][0],bsd, 'BSD', memo, account=llaves[u][0])
            if bearsb > 0 and llaves[u][0] != 'python':        
                t = bear.commit.transfer(llaves[u+1][0],bearsb, 'BEARS', memo, account=llaves[u][0])     
            print('{} transfiere: {} BSD y {} BEARS a: {}\n\n'.format(llaves[u][0],bsd, bearsb, llaves[u+1][0]))
        else:
            bear = Bear(keys = llaves[4][1]) # active
            bsd = float(str.split(bear.beard.get_account(llaves[4][0])['bsd_balance'])[0])
            bearsb = float(str.split(bear.beard.get_account(llaves[4][0])['balance'])[0])         
            t= bear.commit.transfer(llaves[1][0],bearsb, 'BEARS', memo, account=llaves[4][0]) 
            t= bear.commit.transfer(llaves[1][0],bsd, 'BSD', memo, account=llaves[4][0])
            print('fin')
```
# <center> United we stand | Divided we fall</center> 
<center> ¡Join the discussion! </center>
## <center>Comment | Vote |  Follow | Love me | Hate me</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id72,495,390
authornnnarvaez
permlinkmaking-useless-python-bots
categorycoding
json_metadata{"tags":["coding","python","steem","bullshit","shitpost"],"image":["https:\/\/cdn.steemitimages.com\/DQmWgTxU3riCTAAwhpmyrGUUyyV5aJJEpAVeJQ78Cpi5xyN\/image.png"],"app":"steemit\/0.1","format":"markdown"}
created2019-04-03 20:10:18
last_update2019-04-03 20:23:33
depth0
children13
net_rshares632,615,475,048
last_payout2019-04-10 20:10:18
cashout_time1969-12-31 23:59:59
total_payout_value0.338 SBD
curator_payout_value0.081 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,952
author_reputation63,908,048,418,603
root_title"Making useless Python bots"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (59)
@angelica7 ·
Probando ando

Posted using [Partiko Messaging](https://steemit.com/@partiko)
properties (22)
post_id72,507,834
authorangelica7
permlinkangelica7-re-nnnarvaez-making-useless-python-bots-20190404t024940418z
categorycoding
json_metadata{"app":"partiko","from_partiko_messaging":true}
created2019-04-04 02:49:42
last_update2019-04-04 02:49:42
depth1
children0
net_rshares0
last_payout2019-04-11 02:49:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length77
author_reputation20,469,682,718,075
root_title"Making useless Python bots"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@crypto.piotr ·
Dear @nnnarvaez

Would it be difficult to build a bot that checks list of everyone I follow and would provide me with raport of accounts that didnt post anything in 30 days? I've been thinking of such a tool.

Manually I managed to track number of people who stopped posting and few of them came back after I reached out to them. It's simple as that: people like to see that someone out there cares.

What do you think?

Yours
Piotr
properties (22)
post_id72,548,212
authorcrypto.piotr
permlinkre-nnnarvaez-making-useless-python-bots-20190404t194235705z
categorycoding
json_metadata{"tags":["coding"],"users":["nnnarvaez"],"app":"steemit\/0.1"}
created2019-04-04 19:42:30
last_update2019-04-04 19:42:30
depth1
children11
net_rshares0
last_payout2019-04-11 19:42:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length432
author_reputation125,892,541,179,417
root_title"Making useless Python bots"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars0
@nnnarvaez ·
$0.03
That is what the bot I made you does

Do you want me to run it and give you the resulting list?
👍  
properties (23)
post_id72,553,938
authornnnarvaez
permlinkre-cryptopiotr-re-nnnarvaez-making-useless-python-bots-20190404t224343974z
categorycoding
json_metadata{"tags":["coding"],"app":"steemit\/0.1"}
created2019-04-04 22:43:45
last_update2019-04-04 22:43:45
depth2
children10
net_rshares49,219,157,451
last_payout2019-04-11 22:43:45
cashout_time1969-12-31 23:59:59
total_payout_value0.026 SBD
curator_payout_value0.008 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length95
author_reputation63,908,048,418,603
root_title"Making useless Python bots"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@crypto.piotr · (edited)
Dear @nnnarvaez

Is there any way we could contact each other via DM? I would love to get in touch closer with you.

> Do you want me to run it and give you the resulting list?

That would be awesome. Any chance you could send results to my private email: promib.pl@gmail.com?  (just please write your steemit username within body of email, otherwise it may be hard for me to figure out who is who :)

ps. Are you french / venezuelan? (thats what your profile says :)

Yours
Piotr
properties (22)
post_id72,716,009
authorcrypto.piotr
permlinkre-nnnarvaez-re-cryptopiotr-re-nnnarvaez-making-useless-python-bots-20190408t072854345z
categorycoding
json_metadata{"tags":["coding"],"users":["nnnarvaez"],"app":"steemit\/0.1"}
created2019-04-08 07:28:57
last_update2019-04-08 07:30:09
depth3
children9
net_rshares0
last_payout2019-04-15 07:28:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length480
author_reputation125,892,541,179,417
root_title"Making useless Python bots"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars0