/** * Simple call and response. * * User: Now we're cooking with gas! * Bot: KABOOM! * * @param Bot $bot */ public function bot_gas_handler($bot) { if ($bot->match('cooking with gas')) { $bot->setReply('KABOOM!'); } }