Skip to content

Commit

Permalink
Merge branch 'release/0.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniusostermann committed Jan 14, 2018
2 parents 9ca22fe + 451433b commit eb198f7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
10 changes: 10 additions & 0 deletions app/states/application.ts
Expand Up @@ -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());
}
}
11 changes: 10 additions & 1 deletion 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?",
Expand All @@ -12,6 +20,7 @@
],
"badDayIntent": [
"{Ein weiser Mann|Barney Stinson} sagte mal: 'if I'm <phoneme alphabet='ipa' ph='sæd'>sad</phoneme>, <phoneme alphabet='ipa' ph='aɪ'>I</phoneme> <phoneme alphabet='ipa' ph='stɑp'>stop</phoneme> being <phoneme alphabet='ipa' ph='sæd'>sad</phoneme> 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."
}
}
2 changes: 1 addition & 1 deletion 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",
Expand Down

0 comments on commit eb198f7

Please sign in to comment.