Sha256: e3337cb2999cc8817a8516a10ffaf801d67212f73d2c2de806ae1849d0500903
Contents?: true
Size: 562 Bytes
Versions: 3
Compression:
Stored size: 562 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) debug txt self.tweet txt, {:in_reply_to_status_id => source[:id]}, source end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chatterbot-0.2.8 | lib/chatterbot/tweet.rb |
chatterbot-0.2.7 | lib/chatterbot/tweet.rb |
chatterbot-0.2.6 | lib/chatterbot/tweet.rb |