PhpSlackBot\Bot::loadCatchAllCommand PHP Method

loadCatchAllCommand() public method

public loadCatchAllCommand ( $command )
    public function loadCatchAllCommand($command)
    {
        if ($command instanceof Command\BaseCommand) {
            $this->catchAllCommands[] = $command;
        } else {
            throw new \Exception('Command must implement PhpSlackBot\\Command\\BaseCommand');
        }
    }