1
0
Fork 0
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:
ChomeNS 2022-10-13 08:59:21 +07:00
parent 7f091c4fe3
commit 4c0d1881b7
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@ module.exports = {
'core': {
'layers': 1,
},
'reconnectTimeout': 1000 * 6,
'discord': {
'token': 'OTcxNjUwNDU2NzA5Mzk4NTY5.G3lKC2._XQNTTU1Jqmaam_A0JKSe93GP1vFZvDpiXqZzA',
'servers': {

View file

@ -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) {