How do I ping/pong with a Node JS Bot?

I see, so if I understand correctly do I just need to make sure I send a message saying pong every 10 minutes or something? How do I appropriately send a pong? I am trying this new way where i just send “PONG” like this but i’m not suite sure this would work.

bot.addListener('raw', function(message){
switch ( message.command ) {
    case "PING":
        bot.send("PONG", message.args[0]);
        bot.emit('ping', message.args[0]);
        break;
}

});

I feel like that may be a bit useless now though since I could maybe use the ping event listener, I am not sure I am fairly lost when it comes to this ping/pong thing which is why I posted here lol, once again sorry if I am missing something completely obvious. Is there any way to know if the ping/pong was a success so I can know immediately if my code is working or what would you suggest I do to pong appropriately?

Also thank you sincerely for any help you can give, it is really appreciated!

Edit: actually i seem to be finding reports that the pong should be structured as such

bot.send("PONG tmi.twitch.tv", message.args[0]);

with the tmi.twitch.tv at the end, but I am not positive. is that required?