yay i found a fix (also its my fault)

iirc theres a ploblem hosting the bot on my server and iirc theres some
errors about packet and those shit so i just make it an empty function
idk if its still happen on my server but the bot is now mainly hosted on
your webserver so now i can just bring it back
This commit is contained in:
ChomeNS 2023-01-24 17:30:00 +07:00
parent 745d60ea60
commit 7f6b4ce712

4
bot.js
View file

@ -119,7 +119,9 @@ async function createBot (server, config, getBots, setNewBot, dcclient, rl) {
bot.end(parsed, 'disconnect')
})
bot._client.on('error', () => {})
bot._client.on('error', (data) => {
bot.end(data, 'error')
})
return bot
};