Bot not sending data properly after a set time

Highlight the text and hit the quote button

So it’s not spam? When you say spam, we assume you mean to hammer the chat and spam it. 10 minutes or so is not spam.

Are you reply to the pings with a pong?

Sounds like you might have network conditions messing about with the connection, or you have something else going on that is stopping your code from working.

You may want to post your code so we can help debug (with secrets removed)