mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 07:38:00 -05:00
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:
parent
745d60ea60
commit
7f6b4ce712
1 changed files with 3 additions and 1 deletions
4
bot.js
4
bot.js
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue