Sha256: b68956651e9d3eeae489cd1f2a11aab58fa3987783f9edf044e014cecb652fb5
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 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.0 | lib/lita/handlers/vader.rb |