class Ruboty::Handlers::A3rtTalk
Enable your ruboty to talk with you by a3rt talk api
Public Instance Methods
api_key()
click to toggle source
# File lib/ruboty/handlers/a3rt_talk.rb, line 21 def api_key ENV['A3RT_TALK_API_KEY'] end
talk(message)
click to toggle source
# File lib/ruboty/handlers/a3rt_talk.rb, line 15 def talk(message) query = message[:body] resp = A3rt::Talk.talk(query, api_key) message.reply(resp.least_perplex.reply) end