From 486cf81deffd586cd44cd3ffb40ccfe8f5377699 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Fri, 19 Aug 2022 14:16:30 +0700 Subject: [PATCH] working keepalive Real. --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index ecb9ac7..e039c1f 100644 --- a/index.js +++ b/index.js @@ -350,6 +350,10 @@ function main() { // onerror('end event: ' + util.inspect(reason).replaceAll('runner', 'chayapak1')); }); + bot._client.on('keep_alive', (packet) => { + bot.write('keep_alive', {keepAliveId: packet.keepAliveId}); + }); + bot._client.on('tab_complete', (packet) => { bot.tabcompleteplayers = packet.matches; });