Sha256: 4dee6d04129d962ef85c2eb6d1323d837aeb663fa3007963de85dde5d17f4702
Contents?: true
Size: 469 Bytes
Versions: 5
Compression:
Stored size: 469 Bytes
Contents
module Lita module Lita::Handlers::Bingo class Engineer < Lita::Handler include LoadBingo route(/工程師|engineer|凹/i, :engineer, command: true, help: { t("help.engineer_key") => t("help.engineer_value") }) def engineer(response) reply1 = bingo(:engineer, :reply1) reply2 = bingo(:engineer, :reply2) response.reply "#{reply1}#{reply2}" end end Lita.register_handler(Engineer) end end
Version data entries
5 entries across 5 versions & 1 rubygems