From f7151d37b0b33783eaf56cd8dff408f72ff923c9 Mon Sep 17 00:00:00 2001 From: fletcherist Date: Mon, 23 Jul 2018 21:04:09 +0300 Subject: [PATCH] feat: implement originalUtterance --- src/context.ts | 2 ++ src/types/context.d.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/context.ts b/src/context.ts index 030d2b6..0f4ed35 100644 --- a/src/context.ts +++ b/src/context.ts @@ -23,6 +23,7 @@ export default class Context implements IContext { public payload: {} public message: string public session: Session + public originalUtterance: string public eventEmitter: EventEmitterInterface public command?: ICommand @@ -53,6 +54,7 @@ export default class Context implements IContext { this.userId = req.session.user_id this.payload = req.request.payload this.message = req.request.command + this.originalUtterance = req.request.original_utterance this.session = session diff --git a/src/types/context.d.ts b/src/types/context.d.ts index 7a6b451..1241bc7 100644 --- a/src/types/context.d.ts +++ b/src/types/context.d.ts @@ -11,6 +11,7 @@ export interface IContext { payload: {} message: string session: {} + originalUtterance: string eventEmitter: EventEmitterInterface // command?: Command