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):