Skip to content

Commit

Permalink
feat: implement originalUtterance
Browse files Browse the repository at this point in the history
  • Loading branch information
fletcherist committed Jul 23, 2018
1 parent 7c64230 commit f7151d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/types/context.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface IContext {
payload: {}
message: string
session: {}
originalUtterance: string
eventEmitter: EventEmitterInterface

// command?: Command
Expand Down

0 comments on commit f7151d3

Please sign in to comment.