diff --git a/index.js b/index.js index 651b94d..fb32d0f 100644 --- a/index.js +++ b/index.js @@ -128,3 +128,8 @@ ym.on('ready', onReady); ym.on('loginSuccessful', onLoginSuccessful); ym.on('pm', onPm); ym.on('buddyAddRequest', onBuddyAddRequest); + + +setInterval(function() { + ym.keepAlive(); +}, 5 * 60 * 1000);