def is_valid_command(self, command):
    '\n        Check if the given command is registered\n\n        :param command: The name of the command\n        :return: True or False\n        '
    return (command in self.commands)
Check if the given command is registered

:param command: The name of the command
:return: True or False
def is_valid_command(self, command):
    '\n        Check if the given command is registered\n\n        :param command: The name of the command\n        :return: True or False\n        '
    return (command in self.commands)