-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhandler.ts
More file actions
26 lines (20 loc) · 716 Bytes
/
Copy pathhandler.ts
File metadata and controls
26 lines (20 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
'use strict';
import * as fs from 'fs';
import * as path from 'path';
import { states } from './index';
export class DefaultHandler {
public handler() {
const self = this;
return {
'NewSession' : function() {
// let story = fs.readFileSync(path.join(__dirname, 'stories', 'school_story', 'school_story_filled.txt'), { encoding: 'utf8'});
this.handler.state = states.CONFIRM_NEW_GAME;
this.emit(':ask', 'Welcome to Word blanks, would you like to start a new game?');
},
'SessionEndedRequest' : function() {
},
'Unhandled' : function() {
}
}
}
}