示例#1
0
 /**
  * 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!');
     }
 }