From 034a5ad0dda660528e391b98ee7bf8865a05a872 Mon Sep 17 00:00:00 2001 From: merspieler Date: Tue, 27 Feb 2018 16:37:42 +0100 Subject: [PATCH] Make that 'one' becomes '1' --- __init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 0262ed1..74f1e8a 100644 --- a/__init__.py +++ b/__init__.py @@ -8,6 +8,7 @@ from adapt.intent import IntentBuilder from mycroft import MycroftSkill, intent_handler from mycroft.skills.core import MycroftSkill from mycroft.util.log import getLogger +from mycroft.util import normalize LOGGER = getLogger(__name__) @@ -60,7 +61,7 @@ class FlightGearCopilotSkill(MycroftSkill): @intent_handler(IntentBuilder('FlapsIntent').require('flaps')) def handle_flaps_intent(self, message): - flaps_request = message.data['utterance'] + flaps_request = normalize(message.data['utterance']) if flaps_request == "flaps": self.speak_dialog("no.setting") sys.exit(0)