diff options
Diffstat (limited to '__main__.py')
-rw-r--r-- | __main__.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/__main__.py b/__main__.py index 5196760..7d6f84b 100644 --- a/__main__.py +++ b/__main__.py @@ -9,12 +9,10 @@ from .modules.hassil.recognize import recognize from .modules.hassil.util import merge_dict from .modules.hassil.intents import Intents, TextSlotList -from .modules.responses.response_handler import ResponseHandler +from .modules.responses.response_manager import ResponseManager from .modules.input_handlers.stdin_input import StdinInput from .modules.input_handlers.pipewire_record import PipeWireRecord -from .modules.responses.libnotify import respond - from .modules.intents import * @@ -44,7 +42,7 @@ def main(): } input_handler = PipeWireRecord() if config.input_mode == Config.INPUT_PW else StdinInput() - response_handler = ResponseHandler(config) + response_manager = ResponseManager(config) try: for input_text in input_handler.get_input(): @@ -56,7 +54,7 @@ def main(): } print(result_dict) - response_handler.respond(result.response, result.intent.name) + response_manager.respond(result.response, result.intent.name) handler = getattr(globals()[result_dict["domain"]], result_dict["intent"]) handler(result_dict, config) |