Skip to content

Instantly share code, notes, and snippets.

@cesare
Created August 16, 2015 04:46
Show Gist options
  • Save cesare/66d32d4cd9c8e3b8f82d to your computer and use it in GitHub Desktop.
Save cesare/66d32d4cd9c8e3b8f82d to your computer and use it in GitHub Desktop.
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