出现了@at就直接触发复读,没有延迟
This commit is contained in:
parent
c91ac3cb44
commit
13a669b362
@ -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);
|
||||
|
||||
@ -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";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user