follow_tagsa list of tags for this bot to automatically reply to.
max_follow_tags_reply_depthsets the depth for
follow_tagsto automatically trigger a posts/replies. The default of 0 will only allow this bot to reply to the root post and none of the replies. Setting 1 allows the bot to reply to the root post and the first reply.
This bot will automatically reply to posts and comments that reply to and mention the bot. The replies are provided by the Cat Facts API.
The main reference implementation of Cat Facts is @catfacts. For example:
To use this Radiator bot:
$ sudo apt-get update $ sudo apt-get install ruby-full git openssl libssl1.0.0 libssl-dev $ sudo apt-get upgrade $ gem install bundler
$ 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]
You can try the system version of
ruby, but if you have issues with that, use this how-to, and come back to this installation at Step 4:
First, clone this git and install the dependencies:
$ git clone https://github.com/steem-third-party/catfacts.git $ cd catfacts $ bundle install
:catfacts: :block_mode: irreversible :account_name: <your STEEM bot name> :posting_wif: <your STEEM bot posting key> :chain_options: :chain: steem :url: https://steemd.steemit.com
support/reply.md template (optional).
Then run it:
$ rake run
Cat Facts will now do it's thing. Check here to see an updated version of this bot:
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 $ git pull $ git stash pop $ bundle install
If you're still having problems, I suggest starting a new clone.
Problem: Everything looks ok, but every time Cat Facts tries to reply, I get this error:
Unable to reply with <account>. Invalid version
Solution: You're trying to reply with an invalid key.
Make sure the
.yml file contains the correct voting key and account name (
social is just for testing).
Problem: The node I'm using is down.
Is there a list of nodes?
Solution: Yes, special thanks to @ripplerm.
- Clone the client repository into a directory of your choice:
git clone https://github.com/inertia186/catfacts.git
- Navigate into the new folder
- Basic tests can be invoked as follows:
- To run tests with parallelization and local code coverage:
Get in touch!
If you're using Cat Facts, I'd love to hear from you. Drop me a line and tell me what you think! I'm @inertia on STEEM and Discord.