Sha256: d59bb5aa0227df339bfaa64a04e4731c7bd7d6afa1f5796efd38761731fc40ad

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 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.1 lib/lita/handlers/vader.rb