matthewniemerg / steem-autovote-bot

STEEM Autovote Bot
13 stars 15 forks source link

Some error #1

Closed mostar closed 8 years ago

mostar commented 8 years ago

Hi,

I followed the example, tried to run the script. The output error is not clear to me:

{'otheruser': {'myuser': {'random_wait': 0, 'frequency': 1}}}
Traceback (most recent call last):
  File "autoupvote-bot.py", line 306, in <module>
    main()
  File "autoupvote-bot.py", line 295, in main
    my_max_random_wait = monitor[a][b]['min_random_wait']
KeyError: 'min_random_wait'

Other try

{'otheruser': {'myuser': {'random_wait': 2, 'min_random_wait': 1, 'max_random_wait': 10, 'frequency': 1}}}
myuser  is monitoring otheruser with a random wait between 1  and 10 seconds with a probability of 1
Traceback (most recent call last):
  File "autoupvote-bot.py", line 306, in <module>
    main()
  File "autoupvote-bot.py", line 301, in main
    monitor_loop(settings, wallet)
  File "autoupvote-bot.py", line 200, in monitor_loop
    last_block = cur_info["result"]["last_irreversible_block_num"]
KeyError: 'result'

I'm successfully connected to sync running node Any advice will be appreciated

matthewniemerg commented 8 years ago

Sorry. I didn't update the documentation.

If you look in the example file that I provide, there is a new value called 'min_random_wait'. This is required. 'max_random_wait' is optional. But, other than that, it's the same syntax. Updating docs shortly.