Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
48 lines (46 loc) · 1.53 KB

File metadata and controls

48 lines (46 loc) · 1.53 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
require('dotenv').config();
const shardNumber = parseInt(process.env.D_SHARDS, 10);
const delayNumber = parseInt(process.env.D_DELAY, 10);
module.exports = {
"general": {
"shards": shardNumber,
"token": process.env.D_TOKEN,
"respawn": true,
"delay": delayNumber,
"graphql": process.env.G_ENDPOINT
},
"rethinkdb": {
"host": process.env.RDB_HOST,
"port": process.env.RDB_PORT,
"db": process.env.RDB_DB
},
"redis": {
"host": process.env.R_HOST,
"retry_strategy": function (options) {
if (options.error && options.error.code === 'ECONNREFUSED') {
// End reconnecting on a specific error and flush all commands with
// a individual error
return new Error('The server refused the connection');
}
if (options.total_retry_time > 1000 * 60 * 60) {
// End reconnecting after a specific timeout and flush all commands
// with a individual error
return new Error('Retry time exhausted');
}
if (options.attempt > 10) {
// End reconnecting with built in error
return undefined;
}
// reconnect after
return Math.min(options.attempt * 100, 3000);
}
},
"mysql": {
"host": "futbot-mariadb-1",
"user": "root",
"password": "walrus",
"database": "futbot",
"port": 3306,
"connectionLimit": 100
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.