|
|
|
|
@ -28,6 +28,15 @@ namespace NapCatRobotClient.Service.Group.TextProcess
|
|
|
|
|
List<string> text = ["请先验证", "请验证", "深色文字"];
|
|
|
|
|
if (text.Any(message.Contains))
|
|
|
|
|
{
|
|
|
|
|
var atData = JArray.Parse(json["message"].ToString()).FirstOrDefault(o => o["type"].ToString() == "at");
|
|
|
|
|
List<string> sendMsg =
|
|
|
|
|
[
|
|
|
|
|
DateTime.Now.ToString(),
|
|
|
|
|
"【触发小小验证码消息】",
|
|
|
|
|
$"群昵称:{groupName}",
|
|
|
|
|
$"群号:{groupId}",
|
|
|
|
|
$"QQ号:{atData?["data"]?["qq"]}"
|
|
|
|
|
];
|
|
|
|
|
PrivateSendMessageRequest request = new()
|
|
|
|
|
{
|
|
|
|
|
UserId = App.Configuration["QQConfig:SendMsgQQ"],
|
|
|
|
|
@ -38,7 +47,7 @@ namespace NapCatRobotClient.Service.Group.TextProcess
|
|
|
|
|
Type = "text",
|
|
|
|
|
Data = new()
|
|
|
|
|
{
|
|
|
|
|
Text = $"{DateTime.Now}\r\n触发小小验证消息\r\n群昵称:{groupName}\r\n群号:{groupId}"
|
|
|
|
|
Text = string.Join("\r\n",sendMsg)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|