diff --git a/bot.js b/bot.js index 065f2e4..f9de54f 100644 --- a/bot.js +++ b/bot.js @@ -46,13 +46,7 @@ async function createBot (server, config, getBots, setNewBot, dcclient, rl) { bot._client.removeAllListeners() } - try { - bot._client = mc.createClient(bot.options) - } catch (e) { - // should i make like if error is only econnrefused and others? - // btw this is to prevent uncaught (which does not reconnect the bot) - bot.end(e.toString(), 'uncaught but actually no') // will display "Disconnected (uncaught but actually no event): error here" - } + bot._client = mc.createClient(bot.options) bot.setMaxListeners(Infinity) bot._client.setMaxListeners(Infinity)