From 13a669b36274277ff7e350d87eb69a0e99ff3ff1 Mon Sep 17 00:00:00 2001 From: milimoe Date: Sun, 30 Jun 2024 14:40:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E7=8E=B0=E4=BA=86@at=E5=B0=B1?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=A7=A6=E5=8F=91=E5=A4=8D=E8=AF=BB=EF=BC=8C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ListeningTask/GroupMessageTask.cs | 3 ++- src/Settings/OSMCore.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ListeningTask/GroupMessageTask.cs b/src/ListeningTask/GroupMessageTask.cs index e4b0898..7ec18c1 100644 --- a/src/ListeningTask/GroupMessageTask.cs +++ b/src/ListeningTask/GroupMessageTask.cs @@ -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); diff --git a/src/Settings/OSMCore.cs b/src/Settings/OSMCore.cs index bc6c715..fcd5891 100644 --- a/src/Settings/OSMCore.cs +++ b/src/Settings/OSMCore.cs @@ -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"; }