src/BotsManager.php
public function getBotConfig($name = null)
    {
        $name = $name ?: $this->getDefaultBot();

        $bots = $this->getConfig('bots');
        if (!is_array($config = array_get($bots, $name)) && !$config) {
            throw new InvalidArgumentException("Bot [$name] not configured.");
        }

        $config['bot'] = $name;

        return $config;
    }
public function getBotConfig($name = null)
    {
        $name = $name ?: $this->getDefaultBot();

        $bots = $this->getConfig('bots');
        if (!is_array($config = array_get($bots, $name)) && !$config) {
            throw new InvalidArgumentException("Bot [$name] not configured.");
        }

        $config['bot'] = $name;

        return $config;
    }
public function getBotConfig ( $ name = null ) { $ name = $ name ? : $ this -> getDefaultBot ( ) ; $ bots = $ this -> getConfig ( 'bots' ) ; if ( ! is_array ( $ config = array_get ( $ bots , $ name ) ) && ! $ config ) { throw new InvalidArgumentException ( "Bot [$name] not configured." ) ; } $ config [ 'bot' ] = $ name ; return $ config ; }
Get the configuration for a bot.

@param string|null $name

@throws \InvalidArgumentException

@return array
Get the configuration for a bot .