diff --git a/app/states/application.ts b/app/states/application.ts
index 31fdf89..2e41cf6 100644
--- a/app/states/application.ts
+++ b/app/states/application.ts
@@ -9,4 +9,14 @@ export class ApplicationState extends BaseState {
constructor(@unmanaged() responseFactory: unifierInterfaces.ResponseFactory, @unmanaged() translateHelper: i18nInterfaces.TranslateHelper) {
super(responseFactory, translateHelper);
}
+
+ /** "Cancel!" */
+ cancelGenericIntent() {
+ this.responseFactory.createVoiceResponse().endSessionWith(this.translateHelper.t());
+ }
+
+ /** "Help me!" */
+ helpGenericIntent() {
+ this.responseFactory.createVoiceResponse().prompt(this.translateHelper.t());
+ }
}
\ No newline at end of file
diff --git a/config/locales/en/translation.json b/config/locales/en/translation.json
index 96d8f5d..99c78bf 100644
--- a/config/locales/en/translation.json
+++ b/config/locales/en/translation.json
@@ -1,4 +1,12 @@
{
+ "root": {
+ "cancelGenericIntent": [
+ "Bis bald!",
+ "Hab noch einen schönen Feierabend!",
+ "Viel Spaß heute noch!"
+ ],
+ "helpGenericIntent": "Im Moment kann ich dir leider nicht helfen, tut mir leid."
+ },
"mainState": {
"invokeGenericIntent": [
"Hallo Toni! Wie war dein Tag?",
@@ -12,6 +20,7 @@
],
"badDayIntent": [
"{Ein weiser Mann|Barney Stinson} sagte mal: 'if I'm sad, I stop being sad and be awesome instead'"
- ]
+ ],
+ "helpGenericIntent": "Oh man. Wenn das mal kein DAU-Alarm ist... Aber gut. Sage 'schlecht' wenn es dir schlecht geht, und 'gut' wenn es dir gut geht."
}
}
\ No newline at end of file
diff --git a/package.json b/package.json
index 6306028..12a8622 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "carebot",
- "version": "0.4.0",
+ "version": "0.5.0",
"description": "Example AssistantJS bot in German",
"main": "js/index.js",
"repository": "https://github.com/antoniusostermann/carebot",