brutalismbot

gem rspec coverage maintainability

Brutalismbot RubyGem

Installation

gem install brutalismbot

Usage

require "brutalismbot"

bot = Brutalismbot::Client.new

# Get latest cached post
post = bot.posts.last

# Get newest posts
bot.reddit.list(:new).all

# Get new posts since latest
bot.reddit.list(:new, before: post.fullname).all

# Get current top post
bot.reddit.list(:top, limit: 1).first

# Pull latest posts
bot.pull

# Mirror a post to all clients
bot.push post

Contributing

Bug reports and pull requests are welcome on GitHub.

License

The gem is available as open source under the terms of the MIT License.

See Also