Sha256: d1125d7587f91344919ef9bc2205b15391e8a867feae052406298ae003e95369

Contents?: true

Size: 337 Bytes

Versions: 7

Compression:

Stored size: 337 Bytes

Contents

module Chatterbot

  # routines for retweet
  module Retweet 

    # simple wrapper for retweeting a message
    def retweet(id)
      return if require_login == false

      if debug_mode?
        debug "I'm in debug mode, otherwise I would retweet with tweet id: #{id}"
      else
        client.retweet id
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chatterbot-0.7.1 lib/chatterbot/retweet.rb
chatterbot-0.7.0 lib/chatterbot/retweet.rb
chatterbot-0.6.6 lib/chatterbot/retweet.rb
chatterbot-0.6.5 lib/chatterbot/retweet.rb
chatterbot-0.6.3 lib/chatterbot/retweet.rb
chatterbot-0.6.2 lib/chatterbot/retweet.rb
chatterbot-0.6.1 lib/chatterbot/retweet.rb