出现了@at就直接触发复读,没有延迟

This commit is contained in:
milimoe 2024-06-30 14:40:58 +08:00
parent c91ac3cb44
commit 13a669b362
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E
2 changed files with 4 additions and 3 deletions

View File

@ -547,7 +547,8 @@ namespace Milimoe.RainBOT.ListeningTask
// 随机复读
if (GeneralSettings.IsRepeat && !Ignore.RepeatIgnore.Any(e.detail.Contains) && e.CheckThrow(GeneralSettings.PRepeat, out dice))
{
int delay = GeneralSettings.RepeatDelay[0] + new Random().Next(GeneralSettings.RepeatDelay[1] - GeneralSettings.RepeatDelay[0]);
// 出现了@at就直接触发复读没有延迟
int delay = temp_at.Any() ? 0 : GeneralSettings.RepeatDelay[0] + new Random().Next(GeneralSettings.RepeatDelay[1] - GeneralSettings.RepeatDelay[0]);
Bot.ColorfulCheckPass(sender, "随机复读", dice, GeneralSettings.PRepeat, delay);
GroupMessageContent content = new(e.group_id);
content.message.AddRange(e.message);

View File

@ -3,8 +3,8 @@
public class OSMCore
{
public const string version = "v1.0";
public const string version2 = "Patch6";
public const string time = "Jun. 22nd, 2024";
public const string version2 = "Patch7 Test";
public const string time = "Jun. 30th, 2024";
public static string Info => $"OSM Core {version} {version2}\r\nAuthor: Milimoe\r\nBuilt on {time}\r\nSee: https://github.com/milimoe";
}