-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.js
57 lines (48 loc) · 2.27 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
49
50
51
52
53
54
55
56
57
require('dotenv').config()
module.exports.token = process.env.BOT_TOKEN
module.exports.server_url = process.env.SERVER_URL //no uses?
module.exports.api_url = process.env.API_URL + module.exports.token + '/'
// module.exports.secret_url = process.env.SERVER_URL+process.env.BOT_TOKEN
module.exports.bot_name = process.env.BOT_NAME
module.exports.debug = JSON.parse(process.env.DEBUG)
module.exports.stringsToMatch = JSON.parse(process.env.BIRTHDAY_STRINGS)
//testing for heroku env variables
// console.log("token: ", module.exports.token);
// console.log("server url: ", module.exports.server_url);
// console.log("api_url: ", module.exports.api_url);
// console.log("bot_name: ", module.exports.bot_name);
module.exports.db_config = {
user: process.env.DB_USER, //env var: PGUSER
database: process.env.DB_DATABASE, //env var: PGDATABASE
password: process.env.DB_PASSWORD, //env var: PGPASSWORD
host: process.env.DB_HOST, // Server hosting the postgres database
port: 5432, //env var: PGPORT
max: 10, // max number of clients in the pool
idleTimeoutMillis: 30000, // how long a client is allowed to remain idle before being closed,
};
module.exports.max_length = {
jio_description: 200, //max characters for jio description
order_remarks: 60, //max characters for order remarks
};
module.exports.menus = [
'Al Amaans',
'Koi',
'Xing Long Fish Soup',
];
module.exports.commands = [
'cancel',
'openjio',
'additem',
'removeitem',
'addmod',
'closejioconfirm'
]
module.exports.help = "We currently only allow one concurrent jio per chat.\n\n" +
"If you are unable to access the jio message, you can use /closejio to manually close the jio.\n\n" +
"Only the jio creator or group admins can close a jio.\n\n" +
"Some options become invalidated after 48 hours.";
module.exports.about = "Developed by @nicktohzyu and @iamjamestan, building on the original supperbot by Lester. " +
"Submit inquiries or bug reports at https://github.com/nicktohzyu/supperbot-node-telegram/issues"; //insert github link
module.exports.start = "Welcome! You can now add items to jios.\n\n" +
"Open a jio in a group chat with /openjio, use /help for troubleshooting, and read about me in /about."
module.exports.superusers = [653601805] //array of user id