Added a feature to replay buffered messages while chat is offline (up to a limit of the 10 latest by default) and changed the sent message tracking to pass-by-reference instead of exclusively using GUIDs. The GUIDs still exist for scenarios where you can't pass a reference to the object around.

This commit is contained in:
barelyprofessional
2024-09-15 23:00:26 +08:00
parent 37f161663b
commit 04e73c8d5f
4 changed files with 51 additions and 14 deletions

View File

@@ -19,5 +19,9 @@ public enum SentMessageTrackerStatus
// If the bot is blocked from sending the message, e.g. due to suppress chat messages being enabled
NotSending,
// Shouldn't happen normally, it's just set before the bot has made a decision on whether to send or not,
Unknown
Unknown,
// Means the chat was disconnected when you attempted to send the message
ChatDisconnected,
// Was held in the replay buffer due to a disconnect, but there were too many messages ahead of it and so was culled
Lost
}