Sha256: bf1bfcaf7a497ba1f6e69928826ac4175543e504edcb5fb44bc31ce4807a5b7a
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
module Lita module Handlers class Vader < Handler route(/who is (.*)['’]s father\?/, :father, command: true, help: { "who is USER's father?" => "Replies back with the suprising truth." }) def father(response) child = response.matches[0][0] response.reply("#{child}, I am your father!") end end Lita.register_handler(Vader) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lita-vader-0.1.2 | lib/lita/handlers/vader.rb |