修复BUG

This commit is contained in:
milimoe 2024-04-12 16:03:10 +08:00
parent 4fec334e9f
commit 6588525ea9
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E
4 changed files with 5 additions and 8 deletions

Binary file not shown.

View File

@ -284,11 +284,8 @@ namespace Milimoe.RainBOT.ListeningTask
{
if (long.TryParse(str_qq.Trim().Replace("@", ""), out long qq))
{
if (qq == GeneralSettings.BotQQ && !Daily.UserDailys.ContainsKey(qq))
{
Daily.UserDailys.Remove(GeneralSettings.BotQQ);
await Bot.SendGroupMessage(e.group_id, "重置运势", "已重置" + Bot.GetMemberNickName(e.group_id, qq) + "" + qq + ")的今日运势。");
}
Daily.UserDailys.Remove(GeneralSettings.BotQQ);
await Bot.SendGroupMessage(e.group_id, "重置运势", "已重置" + Bot.GetMemberNickName(e.group_id, qq) + "" + qq + ")的今日运势。");
}
}
});

View File

@ -105,7 +105,7 @@ namespace Milimoe.RainBOT.Settings
BlackList.Times[user_id] = 6;
if (send_group)
{
GroupMessageContent content = new(user_id);
GroupMessageContent content = new(target_id);
content.message.Add(new AtMessage(user_id));
content.message.Add(new TextMessage("警告你已因短时间内频繁操作被禁止使用BOT指令" + (GeneralSettings.BlackFrozenTime / 60) + "分钟" + (GeneralSettings.BlackFrozenTime % 60) + "秒。"));
_ = Task.Run(async () =>
@ -118,7 +118,7 @@ namespace Milimoe.RainBOT.Settings
}
else
{
FriendMessageContent content = new(user_id);
FriendMessageContent content = new(target_id);
content.message.Add(new AtMessage(user_id));
content.message.Add(new TextMessage("警告你已因短时间内频繁操作被禁止使用BOT指令" + (GeneralSettings.BlackFrozenTime / 60) + "分钟" + (GeneralSettings.BlackFrozenTime % 60) + "秒。"));
_ = Task.Run(async () =>

View File

@ -3,7 +3,7 @@
public class OSMCore
{
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 static string Info => $"OSM Core {version} {version2}\r\nAuthor: Milimoe\r\nBuilt on {time}\r\nSee: https://github.com/milimoe";