-
Notifications
You must be signed in to change notification settings - Fork 7
/
app.js
50 lines (44 loc) · 2.44 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
const {Timers} = require('./lib/timers');
// Register actions
const actionCountdownStop = require('./lib/actions/countdown_stop');
const actionCountdownStopAutocomplete = require('./lib/actions/countdown_stop_autocomplete');
const actionCountdownStopAll = require('./lib/actions/countdown_stop_all');
const actionCountdownUpdate = require('./lib/actions/countdown_update');
const actionCountdownUpdateAutocomplete = require('./lib/actions/countdown_update_autocomplete');
const actionCountdownStartLedringAutocomplete = require('./lib/actions/countdown_start_ledring');
const actionCountdownStopLedring = require('./lib/actions/countdown_stop_ledring');
const actionCountdownPauseAutocomplete = require('./lib/actions/countdown_pause_autocomplete');
const actionCountdownResumeAutocomplete = require('./lib/actions/countdown_resume_autocomplete');
const actionCountdownPauseOrResumtAutocomplete = require('./lib/actions/countdown_pause_or_resume_autocomplete');
// Register conditions
const conditionActive = require('./lib/conditions/countdown_active');
const conditionActiveAutocomplete = require('./lib/conditions/countdown_active_autocomplete');
// Register triggers
const triggerCountdownStarted = require('./lib/triggers/countdown_started');
const triggerCountdownStopped = require('./lib/triggers/countdown_stopped');
const triggerSpecificCountdownStopped = require('./lib/triggers/specific_countdown_stopped');
const triggerSpecificCountdownStoppedAutocomplete = require('./lib/triggers/specific_countdown_stopped_autocomplete');
const triggerSpecificCountdownStarted = require('./lib/triggers/specific_countdown_started');
const triggerSpecificCountdownStartedAutcomplete = require('./lib/triggers/specific_countdown_started_autocomplete');
// Give Timers all the cards, so we can do all kinds of stuff
Timers.setCards([
actionCountdownStop,
actionCountdownStopAll,
actionCountdownUpdate,
conditionActive,
conditionActiveAutocomplete,
triggerCountdownStarted,
triggerCountdownStopped,
triggerSpecificCountdownStopped,
triggerSpecificCountdownStarted,
actionCountdownUpdateAutocomplete,
actionCountdownStartLedringAutocomplete,
actionCountdownStopLedring,
actionCountdownStopAutocomplete,
triggerSpecificCountdownStoppedAutocomplete,
triggerSpecificCountdownStartedAutcomplete,
actionCountdownPauseAutocomplete,
actionCountdownResumeAutocomplete,
actionCountdownPauseOrResumtAutocomplete
]);
module.exports = Timers;