Sha256: a9e2704b224ad8f19eafab28b05c6077b633af584e7a22a6c8707a27317bc994
Contents?: true
Size: 547 Bytes
Versions: 4
Compression:
Stored size: 547 Bytes
Contents
module Chatterbot # # routines for sending tweets module Tweet # simple wrapper for sending a message def tweet(txt, params = {}, original = nil) return if require_login == false if debug_mode? debug "I'm in debug mode, otherwise I would tweet: #{txt}" else debug txt log txt, original client.update txt, params end end # reply to a tweet def reply(txt, source) self.tweet txt, {:in_reply_to_status_id => source["id"]}, source end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
chatterbot-0.2.3 | lib/chatterbot/tweet.rb |
chatterbot-0.2.2 | lib/chatterbot/tweet.rb |
chatterbot-0.2.1 | lib/chatterbot/tweet.rb |
chatterbot-0.2.0 | lib/chatterbot/tweet.rb |