mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
easier to read
This commit is contained in:
parent
c33b1d8479
commit
36d514a516
1 changed files with 2 additions and 2 deletions
4
bot.js
4
bot.js
|
@ -164,8 +164,8 @@ async function createBot (server, config, getBots, setNewBot, dcclient, rl) {
|
|||
}, timeout)
|
||||
})
|
||||
|
||||
bot._client.on('keep_alive', (packet) => {
|
||||
bot.write('keep_alive', { keepAliveId: packet.keepAliveId })
|
||||
bot._client.on('keep_alive', ({ keepAliveId }) => {
|
||||
bot.write('keep_alive', { keepAliveId })
|
||||
})
|
||||
|
||||
bot._client.on('kick_disconnect', function (data) {
|
||||
|
|
Loading…
Reference in a new issue