def pongcommand_initialize(bot, bang) bot.message(with_text: "#{bang}Pong") do |event| pong(event) end end def pong(event) event.respond 'Ping!!' end