I'm having a problem I really just cannot figure a solution for and it is driving me nuts 😄. I am trying to create a bot which sees if a user in a channel starts to stream and notifies a certain channel if this happens.
However, everything worked smoothly first, but then I noticed that if anyone on that guild changes their presence, this event fires and it again announces that a person has started streaming, because they currently are doing that.
I have attached a picture of my current solution trying to stop this, but no matter what I do, I cannot seem to find a way to prevent this from happening. If original code is needed to see how the bot worked when this problem occured to me, I will gladly share it.
If anyone could help me figuring out how to check if someone starts to stream, send a notification and leave it at that. Then notify if someone else goes live and other presence updates would not mess things up.