From 2da71954819e5d8d96a48b05aeecaa63a757222b Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Mon, 2 Jan 2023 08:55:20 +0700 Subject: [PATCH] remove keepAlive + add checkTimeoutInterval back --- bot.js | 2 +- config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 218aced..085b845 100644 --- a/bot.js +++ b/bot.js @@ -36,7 +36,7 @@ async function createBot (server, config, getBots, setNewBot, dcclient, rl) { version: config.version, kaboom: server.kaboom, logging: server.logging, - keepAlive: false, + checkTimeoutInterval: config.timeoutInterval, hideErrors: true } bot._client = mc.createClient(bot.options) diff --git a/config.js b/config.js index 4fe0ed9..4d4aa73 100644 --- a/config.js +++ b/config.js @@ -50,6 +50,7 @@ module.exports = { serverUrl: 'http://192.168.1.105:4445/' }, reconnectTimeout: 1000 * 2, + timeoutInterval: 1000 * 40, self_care_check_interval: 2000, discord: { token: 'OTcxNjUwNDU2NzA5Mzk4NTY5.G3lKC2._XQNTTU1Jqmaam_A0JKSe93GP1vFZvDpiXqZzA',