-
Notifications
You must be signed in to change notification settings - Fork 1
/
Constants.js
37 lines (33 loc) · 1.02 KB
/
Constants.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
const AXIOS_RESPONSE_TIMEOUT = 10000;
const BOT_UPTIME = 10000;
const DATA_FILE_PATH = './data/data.json';
const MARKDOWN = { "parse_mode": "Markdown" };
const ENTRY_TYPE_RESULT = 'result';
const ENTRY_TYPE_DATESHEET = 'datesheet';
const COMMAND_RESULTS = 'results';
const COMMAND_DATESHEETS = 'datesheets';
const COMMAND_SUBSCRIBE = 'subscribe';
const COMMAND_UNSUBSCRIBE = 'unsubscribe';
const ALL_ENTRY_TYPES = [ENTRY_TYPE_RESULT, ENTRY_TYPE_DATESHEET];
const COMMAND_ENTRY_LIST = [
[COMMAND_RESULTS, ENTRY_TYPE_RESULT],
[COMMAND_DATESHEETS, ENTRY_TYPE_DATESHEET]
];
const MONITOR_FAILURE_ENTRY_TYPES = [ENTRY_TYPE_RESULT];
const GRACEFUL_STOP_SIGNALS = ['SIGINT', 'SIGTERM', 'exit'];
export default {
AXIOS_RESPONSE_TIMEOUT,
BOT_UPTIME,
DATA_FILE_PATH,
MARKDOWN,
ENTRY_TYPE_RESULT,
ENTRY_TYPE_DATESHEET,
COMMAND_RESULTS,
COMMAND_DATESHEETS,
COMMAND_SUBSCRIBE,
COMMAND_UNSUBSCRIBE,
ALL_ENTRY_TYPES,
COMMAND_ENTRY_LIST,
MONITOR_FAILURE_ENTRY_TYPES,
GRACEFUL_STOP_SIGNALS
}