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

@@ -516,6 +516,15 @@ public static class BuiltIn
Default = "https://kiwifarms.st/attachments/winmanjack_bgr-png.6414050/",
IsSecret = false,
CacheDuration = TimeSpan.FromHours(1)
},
new BuiltInSettingsModel
{
Key = Keys.BotDisconnectReplayLimit,
Regex = @"\d+",
Description = "Limit of messages which could not be sent while bot was disconnected to replay on connect",
Default = "10",
IsSecret = false,
CacheDuration = TimeSpan.FromHours(1)
}
];
@@ -565,5 +574,6 @@ public static class BuiltIn
public static string CrackedZalgoFuckUpMode = "Cracked.ZalgoFuckUpMode";
public static string CrackedZalgoFuckUpPosition = "Cracked.ZalgoFuckUpPosition";
public static string WinmanjackImgUrl = "Winmanjack.ImgUrl";
public static string BotDisconnectReplayLimit = "Bot.DisconnectReplayLimit";
}
}