lib/ruboty/handlers/rin_chan.rb in ruboty-rin_chan-0.1.0 vs lib/ruboty/handlers/rin_chan.rb in ruboty-rin_chan-0.2.0
- old
+ new
@@ -1,10 +1,10 @@
require "ruboty/rin_chan/actions/rin_chan"
module Ruboty
module Handlers
class RinChan < Base
- on /rin chan rin_chan/, name: 'rin_chan', description: 'TODO: write your description'
+ on /(hi|hello)/i, name: 'rin_chan', description: 'react to hi or hello'
def rin_chan(message)
Ruboty::RinChan::Actions::RinChan.new(message).call
end
end