easier to read

This commit is contained in:
ChomeNS 2022-12-22 18:06:34 +07:00
parent c33b1d8479
commit 36d514a516

4
bot.js
View file

@ -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) {