修复BUG
This commit is contained in:
parent
4fec334e9f
commit
6588525ea9
Binary file not shown.
@ -283,14 +283,11 @@ namespace Milimoe.RainBOT.ListeningTask
|
|||||||
foreach (string str_qq in strs)
|
foreach (string str_qq in strs)
|
||||||
{
|
{
|
||||||
if (long.TryParse(str_qq.Trim().Replace("@", ""), out long qq))
|
if (long.TryParse(str_qq.Trim().Replace("@", ""), out long qq))
|
||||||
{
|
|
||||||
if (qq == GeneralSettings.BotQQ && !Daily.UserDailys.ContainsKey(qq))
|
|
||||||
{
|
{
|
||||||
Daily.UserDailys.Remove(GeneralSettings.BotQQ);
|
Daily.UserDailys.Remove(GeneralSettings.BotQQ);
|
||||||
await Bot.SendGroupMessage(e.group_id, "重置运势", "已重置" + Bot.GetMemberNickName(e.group_id, qq) + "(" + qq + ")的今日运势。");
|
await Bot.SendGroupMessage(e.group_id, "重置运势", "已重置" + Bot.GetMemberNickName(e.group_id, qq) + "(" + qq + ")的今日运势。");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -105,7 +105,7 @@ namespace Milimoe.RainBOT.Settings
|
|||||||
BlackList.Times[user_id] = 6;
|
BlackList.Times[user_id] = 6;
|
||||||
if (send_group)
|
if (send_group)
|
||||||
{
|
{
|
||||||
GroupMessageContent content = new(user_id);
|
GroupMessageContent content = new(target_id);
|
||||||
content.message.Add(new AtMessage(user_id));
|
content.message.Add(new AtMessage(user_id));
|
||||||
content.message.Add(new TextMessage("警告:你已因短时间内频繁操作被禁止使用BOT指令" + (GeneralSettings.BlackFrozenTime / 60) + "分钟" + (GeneralSettings.BlackFrozenTime % 60) + "秒。"));
|
content.message.Add(new TextMessage("警告:你已因短时间内频繁操作被禁止使用BOT指令" + (GeneralSettings.BlackFrozenTime / 60) + "分钟" + (GeneralSettings.BlackFrozenTime % 60) + "秒。"));
|
||||||
_ = Task.Run(async () =>
|
_ = Task.Run(async () =>
|
||||||
@ -118,7 +118,7 @@ namespace Milimoe.RainBOT.Settings
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FriendMessageContent content = new(user_id);
|
FriendMessageContent content = new(target_id);
|
||||||
content.message.Add(new AtMessage(user_id));
|
content.message.Add(new AtMessage(user_id));
|
||||||
content.message.Add(new TextMessage("警告:你已因短时间内频繁操作被禁止使用BOT指令" + (GeneralSettings.BlackFrozenTime / 60) + "分钟" + (GeneralSettings.BlackFrozenTime % 60) + "秒。"));
|
content.message.Add(new TextMessage("警告:你已因短时间内频繁操作被禁止使用BOT指令" + (GeneralSettings.BlackFrozenTime / 60) + "分钟" + (GeneralSettings.BlackFrozenTime % 60) + "秒。"));
|
||||||
_ = Task.Run(async () =>
|
_ = Task.Run(async () =>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
public class OSMCore
|
public class OSMCore
|
||||||
{
|
{
|
||||||
public const string version = "v1.0";
|
public const string version = "v1.0";
|
||||||
public const string version2 = "Patch3 Test";
|
public const string version2 = "Patch3";
|
||||||
public const string time = "Apr. 12nd, 2024";
|
public const string time = "Apr. 12nd, 2024";
|
||||||
|
|
||||||
public static string Info => $"OSM Core {version} {version2}\r\nAuthor: Milimoe\r\nBuilt on {time}\r\nSee: https://github.com/milimoe";
|
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