class Object
Constants
- XMPP_PATERN
Public Instance Methods
channel()
click to toggle source
# File lib/ruboty/handlers/tweetstream.rb, line 7 def channel if XMPP_PATERN === from # Get foobar@example.com in foobar@example.com/bot Xrc::Jid.new(from).strip else from end end
is_pure_user_tweet?(username)
click to toggle source
# File lib/ruboty/tweetstream/stream.rb, line 4 def is_pure_user_tweet?(username) self.in_reply_to_screen_name.nil? &&\ !self.full_text.include?("@#{username}") end