I’'ve written a bot that connects to my wildfire server. When first connected I get flooded with messages that are already in the chat room that my bot has joined.
Some of those messages have an id= and some don’'t. That is I get some messages of the form
<message id=“V89X1-16” …
and some of the form
<message …
that have no id.
My bot needs to reconnect if disconnection occurs, and in that event I get the same messages shot to me on each reconnection.
I need to detect which messages I’'ve already seen. Does the ‘‘id’’ or lack thereof play a role in this?? I can figure many ways to achieve what I want to do, but if the id where always present that would make it easy and fast.
How/why