Уважаемые пользователи Голос!
Сайт доступен в режиме «чтение» до сентября 2020 года. Операции с токенами Golos, Cyber можно проводить, используя альтернативные клиенты или через эксплорер Cyberway. Подробности здесь: https://golos.io/@goloscore/operacii-s-tokenami-golos-cyber-1594822432061
С уважением, команда “Голос”
GOLOS
RU
EN
UA
inertia
7 лет назад

chronicle.rb - Posting Script

Features
  • YAML config.
    • author
    • post
    • post_options
    • chain_options
Overview

Chronicle (chronicle.rb) is a script that allows you to post with full access to all of the options available on the blockchain. Some of these options are not available in the normal web UI. For instance, you can set a maximum payout of $5 or upvote your post with any percent.


Install

To use this Radiator script:

Linux
$ sudo apt-get install ruby-full git openssl libssl1.0.0 libssl-dev
$ gem install bundler
macOS
$ gem install bundler

I've tested it on various versions of ruby. The oldest one I got it to work was:

ruby 2.0.0p645 (2015-04-13 revision 50299) [x86_64-darwin14.4.0]

First, clone this gist and install the dependencies:

$ git clone https://gist.github.com/e8325ad50b42f1fd9d01d3dddde397ef.git chronicle
$ cd chronicle
$ bundle install

Then run it:

$ ruby chronicle.rb

Check here to see an updated version of this script:

https://gist.github.com/inertia186/e8325ad50b42f1fd9d01d3dddde397ef


Upgrade

Typically, you can upgrade to the latest version by this command, from the original directory you cloned into:

$ git pull

Usually, this works fine as long as you haven't modified anything. If you get an error, try this:

$ git stash --all
$ git pull --rebase
$ git stash pop

If you're still having problems, I suggest starting a new clone.


Troubleshooting
Problem: What does this error mean?
chronicle.yml:1: syntax error, unexpected ':', expecting end-of-input
Solution: You ran ruby chronicle.yml but you should run ruby chronicle.rb.

Problem: Everything looks ok, but every time Chronicle tries to post, I get this error:
`from_base58': Invalid version (RuntimeError)
Solution: You're trying to vote with an invalid key.

Make sure the .yml file author item has the correct account name and WIF posting key.

Problem: The node I'm using is down.

Is there a list of nodes?

Solution: Yes, special thanks to @ripplerm.

https://ripplerm.github.io/steem-servers/




See my previous Ruby How To posts in: #radiator #ruby

Get in touch!

If you're using Chronicle, I'd love to hear from you. Drop me a line and tell me what you think! I'm @inertia on STEEM and SteemSpeak.

License

I don't believe in intellectual "property". If you do, consider Chronicle as licensed under a Creative Commons CC0 License.

0
400.965 GOLOS
Комментарии (1)
Сортировать по:
Сначала старые