diff options
author | Botond Hende <nettingman@gmail.com> | 2024-12-04 15:22:10 +0100 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-12-04 15:22:10 +0100 |
commit | 99243bd33a63c076d16bd08914bd1808d4a4112c (patch) | |
tree | 3cd7615401ac1f2a4dac44c51de7b21e27f7b60a /__main__.py | |
parent | 6168323b858a1eeeafdf9a4e2528df3205d6c2da (diff) |
response manager and libnotify response handler
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) |