src/Tools/process_command.py
def cut_wake_word_from_command(command):
    """
    Removes trigger from command using string split on the command string.

    Converts command to lowercase.

    Returns the rest of the command string after removing the trigger.

    :param trigger: str
    :param command: str
    :return: str
    """
    trigger = get_trigger_command()
    command_action = command.split(f' {trigger} ')[1].lower()

    logging.debug(f'Trigger command ({trigger}) removed from ({command})')
    logging.debug(f'Returning {command_action} as command_action')

    return command_action

    Removes trigger from command using string split on the command string.

    Converts command to lowercase.

    Returns the rest of the command string after removing the trigger.

    :param trigger: str
    :param command: str
    :return: str
    
Removes trigger from command using string split on the command string.
Converts command to lowercase.

Returns the rest of the command string after removing the trigger.
Removes trigger from command using string split on the command string . Converts command to lowercase . Returns the rest of the command string after removing the trigger .
def cut_wake_word_from_command(command):
    trigger = get_trigger_command()
    command_action = command.split(f' {trigger} ')[1].lower()
    logging.debug(f'Trigger command ({trigger}) removed from ({command})')
    logging.debug(f'Returning {command_action} as command_action')
    return command_action
def cut_wake_word_from_command ( command ) : trigger = get_trigger_command ( ) command_action = command . split ( f' {trigger} ' ) [ 1 ] . lower ( ) logging . debug ( f'Trigger command ({trigger}) removed from ({command})' ) logging . debug ( f'Returning {command_action} as command_action' ) return command_action
Removes trigger from command using string split on the command string.
Removes trigger from command using string split on the command string .
"""
    Removes trigger from command using string split on the command string.

    Converts command to lowercase.

    Returns the rest of the command string after removing the trigger.

    :param trigger: str
    :param command: str
    :return: str
    """
None
command
None
trigger
None