From cf610af4419429c2d8c42c86568b94c402050e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20M=C3=A4ki?= Date: Tue, 20 Feb 2024 12:53:22 +0000 Subject: [PATCH] message passing code --- ovos_PHAL_plugin_discord_bot/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ovos_PHAL_plugin_discord_bot/__init__.py b/ovos_PHAL_plugin_discord_bot/__init__.py index 55a3b6f..f614520 100644 --- a/ovos_PHAL_plugin_discord_bot/__init__.py +++ b/ovos_PHAL_plugin_discord_bot/__init__.py @@ -78,11 +78,11 @@ class DiscordBotPlugin(PHALPlugin): def on_utterance(self, message=None): LOG.info(f"On utterance triggered: %s", message.serialize()) for utterance in message.data['utterances']: - message_queue.put(("user", utterance)) + self.message_queue.put(("user", utterance)) def on_speak(self, message=None): LOG.info(f"On speak triggered: %s", message.serialize()) - message_queue.put(("mycroft", message.data['utterance'])) + self.message_queue.put(("mycroft", message.data['utterance'])) def setup_configuration(self):