-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
33 lines (32 loc) · 834 Bytes
/
app.js
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
27
28
29
30
31
32
33
const { config } = require('./config');
const { LifxEffects } = require('./lifx-effects');
const lifxEffects = new LifxEffects(config);
const args = process.argv.slice(2);
switch (args[0]) {
case 'bitcoin_new_high':
lifxEffects.runBitcoinNewHighEffect();
break;
case 'bitcoin_new_low':
lifxEffects.runBitcoinNewLowEffect();
break;
case 'cartagines_goal':
lifxEffects.runCartaginesGoalEffect();
break;
case 'cartagines_win':
lifxEffects.runCartaginesWinEffect();
break;
case 'gallotapado':
lifxEffects.runGalloTapadoEffect();
break;
case 'xbox_on':
lifxEffects.runXboxOnEffect();
break;
case 'xbox_achievement':
lifxEffects.runXboxAchievementEffect();
break;
case 'random_color':
lifxEffects.runRandomColorEffect(args[1]);
break;
default:
break;
}