mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2025-04-24 04:53:39 -04:00
add reconnect timeout to config
This commit is contained in:
parent
7f091c4fe3
commit
4c0d1881b7
2 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ module.exports = {
|
|||
'core': {
|
||||
'layers': 1,
|
||||
},
|
||||
'reconnectTimeout': 1000 * 6,
|
||||
'discord': {
|
||||
'token': 'OTcxNjUwNDU2NzA5Mzk4NTY5.G3lKC2._XQNTTU1Jqmaam_A0JKSe93GP1vFZvDpiXqZzA',
|
||||
'servers': {
|
||||
|
|
2
index.js
2
index.js
|
@ -407,7 +407,7 @@ function main() {
|
|||
console.log(`Disconnected (${event} event): ${util.inspect(reason)}`);
|
||||
channel.send(`Disconnected (${event} event): \`${util.inspect(reason)}\``);
|
||||
|
||||
const timeout = 1000 * 6;
|
||||
const timeout = config.reconnectTimeout;
|
||||
|
||||
// try {
|
||||
// if (reason.text) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue