Sha256: 36094c1562a2936123abff653683788a665590019d94881ddf726c301cac0882
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
module Lita module Handlers class Vader < Handler template_root File.expand_path("../../../../templates", __FILE__) 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(render_template("paternity", child: child)) end end Lita.register_handler(Vader) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lita-vader-0.2.0 | lib/lita/handlers/vader.rb |