function vd($var, $exit = true) { \yii\helpers\BaseVarDumper::dump($var, 10, true); if ($exit) { exit; } }
/** * @return int */ public function startup() { $bot = new Bot("qBot"); /* * plugins */ $bot->loadPlugin("Log", array('dir' => 'C:\\OpenServer\\domains\\skypebot\\logs', 'chat_topic_filter' => null, 'chat_id_filter' => null)); $bot->loadPlugin("MessageReader", array('chat_topic_filter' => null, 'chat_id_filter' => null)); $bot->loadPlugin("ChatOpener", array('chat_topic_filter' => null, 'chat_id_filter' => null)); $bot->loadPlugin("PingPong", array('chat_topic_filter' => null, 'chat_id_filter' => null)); $bot->loadPlugin("DriverService", array('chat_topic_filter' => null, 'chat_id_filter' => null)); $bot->scenario = Bot::SCENARIO_DEFAULT; $bot->_run(); if ($bot->run()) { $this->stdout('Success create user', Console::NORMAL); return self::EXIT_CODE_NORMAL; } if ($bot->hasErrors()) { $this->stdout(BaseVarDumper::dumpAsString($bot->getErrors()), Console::BG_YELLOW); } return self::EXIT_CODE_ERROR; }
public static function dump($var, $depth = 10, $highlight = true) { parent::dump($var, $depth, $highlight); }