Created
August 16, 2015 04:46
-
-
Save cesare/66d32d4cd9c8e3b8f82d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sudden_death' | |
module Lita | |
module Handlers | |
class Suddendeath < Handler | |
route /^(突然の.*)/, :sudden_death, command: false | |
def sudden_death(response) | |
response.reply response.match_data[0].sudden_death | |
end | |
end | |
Lita.register_handler(Suddendeath) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment