protected function addCommand(Command $handler): void
	{
		$handler->setBot($this);
		$command = $handler->getName();
		$this->commands[strtoupper($command)] = $handler;
	}
protected function addCommand(Command $handler): void
	{
		$handler->setBot($this);
		$command = $handler->getName();
		$this->commands[strtoupper($command)] = $handler;
	}
protected function addCommand ( Command $ handler ) : void { $ handler -> setBot ( $ this ) ; $ command = $ handler -> getName ( ) ; $ this -> commands [ strtoupper ( $ command ) ] = $ handler ; }
Add a command to the list of commands.
@param Command $handler Handler for the command.
Add a command to the list of commands .