From 36d514a5164a4bad70cd70149a178833f33d1dae Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Thu, 22 Dec 2022 18:06:34 +0700 Subject: [PATCH] easier to read --- bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index efc1018..617a5e9 100644 --- a/bot.js +++ b/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) {