const speak = require('./src/speak');
const fmi = require('./src/content/fmi');
const smallTalk = require('./src/content/smalltalk');
const yleNews = require('./src/content/yleNews');

const scheduler = require('./src/scheduler');
const place = 'tampere';


speak.init()
    .then((say) => {
      yleNews.getText()
            .then(text => say(text));
        // scheduler.add('* * * * * *', () => say(smallTalk.getText()));
        // say(smallTalk.getText());
        // fmi.getText(place)
//            .then(text => say(text))
    });

@@ -1,12 +1,49 @@
+const Promise = require('bluebird');%0A
 const speak 
@@ -214,17 +214,58 @@
 News');%0A
-%0A
+const drive = require('./src/drive');%0A%0A// 
 const sc
@@ -328,17 +328,48 @@
 pere';%0A%0A
-%0A
+Promise.all(%5B%0A  drive.init(),%0A  
 speak.in
@@ -376,23 +376,22 @@
 it()
-%0A    
+,%0A%5D)
 .then((
-say
+res
 ) =%3E
@@ -399,19 +399,39 @@
 %7B%0A  
-    yleNews
+const say = res%5B1%5D;%0A  smallTalk
 .get
@@ -437,24 +437,16 @@
 tText()%0A
-        
     .the
@@ -459,203 +459,191 @@
  =%3E 
-say(text));%0A        // scheduler.add('* * * * * *', () =%3E say(s
+console.log('TEST S
 mall
-Talk.getText()));%0A        // say(smallTalk.getT
+talk:', text));%0A  fmi.getText(place)%0A    .then(text =%3E console.log('TEST FMI:', t
 ext
-(
 ));%0A  
-      // fmi.getText(place)%0A//            .then(text =%3E say(
+yleNews.getText()%0A    .then(text =%3E console.log('TEST NEWS:', 
 text))
+;
 %0A
-    
 %7D);%0A

Test main cleanup