Class: Ruboty::Adapters::Twitter

Inherits:
Base
  • Object
show all
Includes:
Mem
Defined in:
lib/ruboty/adapters/twitter.rb

Instance Method Summary collapse

Instance Method Details

#runObject



16
17
18
19
20
21
# File 'lib/ruboty/adapters/twitter.rb', line 16

def run
  Ruboty.logger.debug("#{self.class}##{__method__} started")
  abortable
  listen
  Ruboty.logger.debug("#{self.class}##{__method__} finished")
end

#say(message) ⇒ Object



23
24
25
# File 'lib/ruboty/adapters/twitter.rb', line 23

def say(message)
  client.update(message[:body], in_reply_to_status_id: message[:original][:tweet].try(:id))
end