Commit 204c7d5f authored by Chris Lord's avatar Chris Lord

Fix example

parent a2c80c7c
......@@ -16,9 +16,11 @@ var rl = Readline.createInterface({
rl.on('line', command => {
rl.pause();
if (!Ferris.parseCommand(command, () => { rl.close(); })) {
var command;
if (!(command = Ferris.parseCommand(command, () => { rl.close(); }))) {
console.log('Command unrecognised');
} else {
command();
Ferris.restartSTT(true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment