Skip to content
This repository was archived by the owner on Oct 9, 2019. It is now read-only.

Commit 9973783

Browse files
author
Martin Raag
committed
Add luncher source to lunchbot
1 parent 85548be commit 9973783

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

index.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
var LunchBot = require('./lib/lunchbot');
44
var FacebookSource = require('./lib/sources/facebook');
5+
var luncherSource = require('./lib/sources/luncher');
56
var Parsers = require('./lib/parsers');
67
var Filters = require('./lib/filters');
78

@@ -69,7 +70,15 @@ const frenchy = new FacebookSource('fr', 'Frenchy', '593232130762873', params);
6970
// Sesoon
7071
const sesoon = new FacebookSource('eggplant', 'Kohvik Sesoon', 'KohvikSesoon', params);
7172

72-
const services = [latabla, kpk, apelsin, fhoone, truhvel, kukeke, buddies, frenchy, sesoon];
73+
const luncherServices = [
74+
['steam_locomotive', 'Perrooni Kohvik', '5795c85ec7e7ff48390001eb'],
75+
['tea', 'Telliskivi Reval Café', '575ea00fc7e7ff483900004b'],
76+
['poultry_leg', 'Telliskivi 15', '5761148ec7e7ff4839000081']
77+
].map(function(service) {
78+
return luncherSource.apply(null, service);
79+
});
80+
81+
const services = [latabla, kpk, apelsin, fhoone, truhvel, kukeke, buddies, frenchy, sesoon].concat(luncherServices);
7382
console.log('Starting LunchBot with ' + services.length + ' services');
7483

7584
bot.services = services;

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"datejs": "0.0.2",
1616
"facebook-node-sdk": "^0.2.0",
1717
"lodash": "^4.0.0",
18+
"request": "^2.74.0",
19+
"request-promise": "^4.1.1",
1820
"sentence-tokenizer": "0.0.7",
1921
"slackbots": "^0.4.0"
2022
}

0 commit comments

Comments
 (0)