Phergie\Irc\Bot\React\Bot::setConfig PHP Method

setConfig() public method

See config.sample.php for an example configuration file.
public setConfig ( array $config )
$config array Associative array keyed by setting name
    public function setConfig(array $config)
    {
        $this->config = $config;
    }

Usage Example

 /**
  * @param ConstructEvent $event
  */
 public function construct(ConstructEvent $event)
 {
     $client = new Client();
     $client->setLoop($event->getLoop());
     $bot = new Bot();
     $bot->setConfig(Configure::read('WyriHaximus.Phergie.config'));
     $bot->setClient($client);
     $bot->run(false);
     EventManager::instance()->dispatch(StartEvent::create($event->getLoop(), $bot));
 }
All Usage Examples Of Phergie\Irc\Bot\React\Bot::setConfig