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