From 874360999204e9f474e62b901f008b0a509c8a0d Mon Sep 17 00:00:00 2001
From: Daniel McKnight <daniel@neon.ai>
Date: Wed, 15 Nov 2023 17:39:51 -0800
Subject: [PATCH] Patch multiple native languages intent registration

---
 neon_utils/skills/neon_skill.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/neon_utils/skills/neon_skill.py b/neon_utils/skills/neon_skill.py
index b35ceedf..c6ebf12d 100644
--- a/neon_utils/skills/neon_skill.py
+++ b/neon_utils/skills/neon_skill.py
@@ -892,3 +892,14 @@ def init_dialog(self, root_directory: Optional[str] = None):
         """
         log_deprecation("Use `load_dialog_files`", "2.0.0")
         self.load_dialog_files(root_directory)
+
+    def add_event(self, name: str, handler: callable,
+                  handler_info: Optional[str] = None, once: bool = False,
+                  speak_errors: bool = True):
+        # TODO: Remove with ovos-workshop==0.0.13
+        if handler_info == "mycroft.skill.handler" and \
+                self.bus.emitter.listeners(name):
+            LOG.warning(f"Not re-registering intent handler {name}")
+            return
+        BaseSkill.add_event(self, name, handler, handler_info, once,
+                            speak_errors)