src/BotsManager.php
protected function parseBotCommands(array $commands)
    {
        $globalCommands = $this->getConfig('commands', []);
        $parsedCommands = $this->parseCommands($commands);

        return $this->deduplicateArray(array_merge($globalCommands, $parsedCommands));
    }
protected function parseBotCommands(array $commands)
    {
        $globalCommands = $this->getConfig('commands', []);
        $parsedCommands = $this->parseCommands($commands);

        return $this->deduplicateArray(array_merge($globalCommands, $parsedCommands));
    }
protected function parseBotCommands ( array $ commands ) { $ globalCommands = $ this -> getConfig ( 'commands' , [ ] ) ; $ parsedCommands = $ this -> parseCommands ( $ commands ) ; return $ this -> deduplicateArray ( array_merge ( $ globalCommands , $ parsedCommands ) ) ; }
Builds the list of commands for the given commands array.

@param array $commands

@return array An array of commands which includes global and bot specific commands.
Builds the list of commands for the given commands array .