Sha256: 3ad4856c17efd5f9dbd688d75a866f86bf9e656fcce6b566fae3c1f3c192bea0
Contents?: true
Size: 531 Bytes
Versions: 5
Compression:
Stored size: 531 Bytes
Contents
module Lita module Lita::Handlers::Bingo class Overtime < Lita::Handler include LoadBingo route(/加班|overtime/i, :overtime, command: true, help: { t("help.overtime_key") => t("help.overtime_value") }) def overtime(response) reply1 = bingo(:overtime, :reply1) reply2 = bingo(:overtime, :reply2) reply3 = bingo(:overtime, :reply3) response.reply "今天我要做 #{reply1}#{reply2}#{reply3}" end end Lita.register_handler(Overtime) end end
Version data entries
5 entries across 5 versions & 1 rubygems