1.0 patch4 test
This commit is contained in:
parent
66851f9582
commit
8af4aae0f7
@ -475,7 +475,7 @@ namespace Milimoe.RainBOT.ListeningTask
|
|||||||
_ = Bot.SendGroupMessage(e.group_id, "随机反驳不", "不可以");
|
_ = Bot.SendGroupMessage(e.group_id, "随机反驳不", "不可以");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (e.detail.Contains('能') && !e.detail.Contains('不') && !e.detail.Contains('技') && !e.detail.Contains('可') && e.CheckThrow(GeneralSettings.PSayNo, out dice))
|
else if (e.detail.Contains('能') && !e.detail.Contains('不') && !SayNo.IgnoreTriggerBeforeCan.Any(e.detail.Contains) && e.CheckThrow(GeneralSettings.PSayNo, out dice))
|
||||||
{
|
{
|
||||||
Bot.ColorfulCheckPass(sender, "随机反驳不", dice, GeneralSettings.PSayNo);
|
Bot.ColorfulCheckPass(sender, "随机反驳不", dice, GeneralSettings.PSayNo);
|
||||||
if (dice < (GeneralSettings.PSayNo / 2))
|
if (dice < (GeneralSettings.PSayNo / 2))
|
||||||
@ -499,6 +499,16 @@ namespace Milimoe.RainBOT.ListeningTask
|
|||||||
_ = Bot.SendGroupMessage(e.group_id, "随机反驳不", "不可能");
|
_ = Bot.SendGroupMessage(e.group_id, "随机反驳不", "不可能");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (e.detail.Contains('要') && !e.detail.Contains('不') && e.CheckThrow(GeneralSettings.PSayNo, out dice))
|
||||||
|
{
|
||||||
|
Bot.ColorfulCheckPass(sender, "随机反驳不", dice, GeneralSettings.PSayNo);
|
||||||
|
_ = Bot.SendGroupMessage(e.group_id, "随机反驳不", SayNo.SayWantWords[new Random().Next(SayNo.SayWantWords.Count)]);
|
||||||
|
}
|
||||||
|
else if (e.detail.Contains('想') && !e.detail.Contains('不') && e.CheckThrow(GeneralSettings.PSayNo, out dice))
|
||||||
|
{
|
||||||
|
Bot.ColorfulCheckPass(sender, "随机反驳不", dice, GeneralSettings.PSayNo);
|
||||||
|
_ = Bot.SendGroupMessage(e.group_id, "随机反驳不", SayNo.SayThinkWords[new Random().Next(SayNo.SayThinkWords.Count)]);
|
||||||
|
}
|
||||||
|
|
||||||
// 反向艾特
|
// 反向艾特
|
||||||
IEnumerable<AtMessage> temp_at = e.message.Where(m => m.type == "at").Cast<AtMessage>().Where(m => m.data.qq == $"{GeneralSettings.BotQQ}");
|
IEnumerable<AtMessage> temp_at = e.message.Where(m => m.type == "at").Cast<AtMessage>().Where(m => m.data.qq == $"{GeneralSettings.BotQQ}");
|
||||||
|
|||||||
11
src/Main.cs
11
src/Main.cs
@ -2,6 +2,7 @@
|
|||||||
using Milimoe.OneBot.Model.Content;
|
using Milimoe.OneBot.Model.Content;
|
||||||
using Milimoe.OneBot.Model.Message;
|
using Milimoe.OneBot.Model.Message;
|
||||||
using Milimoe.OneBot.Model.Other;
|
using Milimoe.OneBot.Model.Other;
|
||||||
|
using Milimoe.RainBOT.Command;
|
||||||
using Milimoe.RainBOT.ListeningTask;
|
using Milimoe.RainBOT.ListeningTask;
|
||||||
using Milimoe.RainBOT.Settings;
|
using Milimoe.RainBOT.Settings;
|
||||||
|
|
||||||
@ -197,8 +198,14 @@ try
|
|||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
string order = Console.ReadLine()?.ToLower().Trim() ?? "";
|
string read = Console.ReadLine() ?? "";
|
||||||
switch (order)
|
// OSM指令
|
||||||
|
if (read.Length >= 4 && read[..4] == ".osm")
|
||||||
|
{
|
||||||
|
MasterCommand.Execute(read, GeneralSettings.Master, false, GeneralSettings.Master, false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
switch (read.ToLower().Trim() ?? "")
|
||||||
{
|
{
|
||||||
case "debug on":
|
case "debug on":
|
||||||
GeneralSettings.IsDebug = true;
|
GeneralSettings.IsDebug = true;
|
||||||
|
|||||||
@ -282,6 +282,7 @@ namespace Milimoe.RainBOT.Settings
|
|||||||
SetGroupBanContent content = new(group_id, qq, mute_time);
|
SetGroupBanContent content = new(group_id, qq, mute_time);
|
||||||
list.Add(content);
|
list.Add(content);
|
||||||
}
|
}
|
||||||
|
if (unmute) list.Add(new SetGroupBanContent(group_id, GeneralSettings.Master, mute_time));
|
||||||
await SendMessage(SupportedAPI.set_group_ban, group_id, "批量禁言指令", list, true);
|
await SendMessage(SupportedAPI.set_group_ban, group_id, "批量禁言指令", list, true);
|
||||||
if (mute_time > 0)
|
if (mute_time > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
public class OSMCore
|
public class OSMCore
|
||||||
{
|
{
|
||||||
public const string version = "v1.0";
|
public const string version = "v1.0";
|
||||||
public const string version2 = "Patch3";
|
public const string version2 = "Patch4 Test";
|
||||||
public const string time = "Apr. 12nd, 2024";
|
public const string time = "May 9th, 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";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,6 +28,20 @@
|
|||||||
"太"
|
"太"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
public static HashSet<string> IgnoreTriggerBeforeCan { get; } = [
|
||||||
|
"技",
|
||||||
|
"可",
|
||||||
|
"性",
|
||||||
|
"本",
|
||||||
|
"来",
|
||||||
|
"才",
|
||||||
|
"产",
|
||||||
|
"高",
|
||||||
|
"负",
|
||||||
|
"正",
|
||||||
|
"潜"
|
||||||
|
];
|
||||||
|
|
||||||
public static HashSet<string> TriggerAfterYes { get; } = [
|
public static HashSet<string> TriggerAfterYes { get; } = [
|
||||||
"吗",
|
"吗",
|
||||||
"呢",
|
"呢",
|
||||||
@ -108,7 +122,8 @@
|
|||||||
"差不多得了,这不{0}等到啥时候{0}??",
|
"差不多得了,这不{0}等到啥时候{0}??",
|
||||||
"我就不{0},怎么了?",
|
"我就不{0},怎么了?",
|
||||||
"你不{0}有的是人{0}",
|
"你不{0}有的是人{0}",
|
||||||
"逆天"
|
"逆天",
|
||||||
|
"何出此言?"
|
||||||
];
|
];
|
||||||
|
|
||||||
public static List<string> SayDontHaveWords { get; } = [
|
public static List<string> SayDontHaveWords { get; } = [
|
||||||
@ -127,7 +142,8 @@
|
|||||||
"可是我有{0}",
|
"可是我有{0}",
|
||||||
"从来都有{0}",
|
"从来都有{0}",
|
||||||
"这还没{0},你想等到你80岁了才有{0}吗?",
|
"这还没{0},你想等到你80岁了才有{0}吗?",
|
||||||
"逆天"
|
"逆天",
|
||||||
|
"何出此言?"
|
||||||
];
|
];
|
||||||
|
|
||||||
public static List<string> SayNotYesWords { get; } = [
|
public static List<string> SayNotYesWords { get; } = [
|
||||||
@ -159,7 +175,44 @@
|
|||||||
"我觉得{0}不{0}都那样",
|
"我觉得{0}不{0}都那样",
|
||||||
"为什么不{0}啊?",
|
"为什么不{0}啊?",
|
||||||
"太{0}了",
|
"太{0}了",
|
||||||
"爱{0}不{0}"
|
"爱{0}不{0}",
|
||||||
|
"何出此言?"
|
||||||
|
];
|
||||||
|
|
||||||
|
public static List<string> SayWantWords { get; } = [
|
||||||
|
"你要个叽叭",
|
||||||
|
"要不了一点",
|
||||||
|
"真别要吧",
|
||||||
|
"想要可以直接要",
|
||||||
|
"要不要关我什么事?",
|
||||||
|
"OK,顺便带我一个",
|
||||||
|
"千万别要",
|
||||||
|
"要不要真无所谓吧",
|
||||||
|
"我不要",
|
||||||
|
"太要了",
|
||||||
|
"你别要",
|
||||||
|
"感觉……不如《崩坏:星穹铁道》",
|
||||||
|
"赶紧的,耽误了我玩原神你们都得陪葬",
|
||||||
|
"喜欢就买下来"
|
||||||
|
];
|
||||||
|
|
||||||
|
public static List<string> SayThinkWords { get; } = [
|
||||||
|
"算了吧,最好别想",
|
||||||
|
"想想就得了",
|
||||||
|
"梦里啥都有",
|
||||||
|
"真没人想吧",
|
||||||
|
"必不想",
|
||||||
|
"也就你想了,你看这里还有谁想?",
|
||||||
|
"笑了,谁关心你想不想的",
|
||||||
|
"你别想",
|
||||||
|
"别想了",
|
||||||
|
"太想了",
|
||||||
|
"搞得我也想了",
|
||||||
|
"噗,没忍住。",
|
||||||
|
"^^",
|
||||||
|
"逆天",
|
||||||
|
"你想你的,我得玩《绝区零》了。",
|
||||||
|
"差不多得了"
|
||||||
];
|
];
|
||||||
|
|
||||||
public static List<string> SaySpecialNoWords { get; } = [
|
public static List<string> SaySpecialNoWords { get; } = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user