-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
48 lines (40 loc) · 1.85 KB
/
config.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
const { DAYS } = require('./constants');
// configuration for min/max hours and days of the week to push notifications for inactivity
module.exports.PUSH_MIN_UTC_HOUR = 11;
module.exports.PUSH_MAX_UTC_HOUR = 22;
module.exports.PUSH_MIN_WEEK_DAY = DAYS.MON;
module.exports.PUSH_MAX_WEEK_DAY = DAYS.THU;
// important!
// Make sure to adjust PUSH_MIN_DELAY_PERIOD_TEXT to correspond to this value
module.exports.PUSH_MIN_DELAY_DAYS = 7;
// Important!
// below applies to push notfication message text 'you have not sent your crop data this <...>'
module.exports.PUSH_MIN_DELAY_PERIOD_TEXT = 'week';
module.exports.ERROR_LOG_PATH = '/logs/error.log';
module.exports.DEFAULT_HELP_MESSAGE =
`To submit crop data *respond with the following format:*\n` +
`'*_temp_* value *_ph_* value *_ec_* value'\n\n` +
`You may send photos of your crop which will be analyzed and provide instant feedback regarding health, deficiencies and pest presence.\n` +
`\n*Additional commands:*\n` +
// `*'help'* - For this reference sheet\n` +
`*'dash/dashboard'* - Provides a link to your dashboard\n` +
`*'delete'* - Remove latest crop data submission\n` +
`*'create system <system-name>'* - Create a new system\n` +
`*'system <system-name> <data>'* - Submit crop data for a specific system\n` +
`*'default system <system-name>'* - Set a default system for crop data submission\n` +
// `*'rename <system-name> <new-system-name>'* - Rename a system\n` +
// `*'set public <system-name>'* - Set a system to be public\n` +
// `*'set private <system-name>'* - Set a system to be private\n` +
// `*'my systems'* - List all your systems\n` +
`*'profile'* - View your profile information\n`;
module.exports.MAX_SYSTEM_NAME_LENGTH = 20;
module.exports.PROBABILITY = {
VERY_LOW: 0.5,
LOW: 0.5,
HIGH: 0.85,
};
module.exports.EMOJI = {
GOOD: '✅',
NEUTRAL: '⚠️',
WARNING: '⛔',
};