diff --git a/__init__.py b/__init__.py index 4dd071a..6099df5 100644 --- a/__init__.py +++ b/__init__.py @@ -15,6 +15,7 @@ import os import traceback import logging +import re from adapt.intent import IntentBuilder from mycroft.skills.core import MycroftSkill, intent_handler @@ -58,6 +59,10 @@ def WhatToRememberIntent(self, message): # user wants to know what we've got @intent_handler(IntentBuilder("RememberIntent").require("Remember").require("WhatToRemember").build()) def RememberIntent(self, message): # user wants us to remember something + utt=(message.data.get("utterance")) + if re.match("what did you", utt) is not None: # workaround for what did you remember? + self.WhatToRememberIntent(message) + return None rememberPhrase = message.data.get("WhatToRemember", None) # get phrase user wants us to remember try: # if user said something like "remember phrase get some milk" we don't want phrase to be saved, brakes skill a bit, we don't wanna skill broken, we like skill rememberPhrase = rememberPhrase.replace('phrase ', '') # Phrase Evanesca! if you got this reference, you should stop reading comments in code and go out a bit, have fun with friends or watch birds or something like that diff --git a/dialog/da-dk/gotphrase.dialog b/dialog/da-dk/gotphrase.dialog index 5fac329..5368d02 100644 --- a/dialog/da-dk/gotphrase.dialog +++ b/dialog/da-dk/gotphrase.dialog @@ -1 +1 @@ -Jeg vil huske {{REMEMBER}} for dig.. +Jeg vil huske "{{REMEMBER}}" for dig.. diff --git a/dialog/de-de/gotphrase.dialog b/dialog/de-de/gotphrase.dialog index 54339d2..5b4d142 100644 --- a/dialog/de-de/gotphrase.dialog +++ b/dialog/de-de/gotphrase.dialog @@ -1 +1 @@ -Ich werde dich an {{REMEMBER}} erinnern. +Ich werde dich an "{{REMEMBER}}" erinnern. diff --git a/dialog/en-us/gotphrase.dialog b/dialog/en-us/gotphrase.dialog index 9b334cf..728e0be 100644 --- a/dialog/en-us/gotphrase.dialog +++ b/dialog/en-us/gotphrase.dialog @@ -1 +1 @@ -I will remember {{REMEMBER}} for you. +I will remember "{{REMEMBER}}" for you. diff --git a/dialog/es-es/gotphrase.dialog b/dialog/es-es/gotphrase.dialog index f82cae1..6945d11 100644 --- a/dialog/es-es/gotphrase.dialog +++ b/dialog/es-es/gotphrase.dialog @@ -1 +1 @@ -Recordaré {{REMEMBER}} por ti. +Recordaré "{{REMEMBER}}" por ti. diff --git a/dialog/it-it/gotphrase.dialog b/dialog/it-it/gotphrase.dialog index 6f52419..ff42593 100644 --- a/dialog/it-it/gotphrase.dialog +++ b/dialog/it-it/gotphrase.dialog @@ -1 +1 @@ -Ricorderò {{REMEMBER}} per te. +Ricorderò "{{REMEMBER}}" per te.