Sha256: 6d8b76c7f64868be4580ef379f5d73bf3cc0a0c6aee5a859405d11ec1188f82c
Contents?: true
Size: 483 Bytes
Versions: 3
Compression:
Stored size: 483 Bytes
Contents
require 'retrobot/tweet_filters/base' require 'retryable' class Retrobot module TweetFilters class Tweet < Base def initialize(retrobot) super end def filter(tweet) tweet tweet.text end def tweet(text) logger.info "tweet: #{text}" return if config.dryrun Retryable.retryable(tries: config.retry_count, sleep: config.retry_interval) do client.update text end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
retrobot-0.3.5 | lib/retrobot/tweet_filters/tweet.rb |
retrobot-0.3.4 | lib/retrobot/tweet_filters/tweet.rb |
retrobot-0.3.3 | lib/retrobot/tweet_filters/tweet.rb |