feat: 添加自动任务群监听触发验证码
This commit is contained in:
@@ -18,6 +18,12 @@ namespace NapCatRobotClient.Service.Group.TextProcess
|
||||
try
|
||||
{
|
||||
JObject json = JObject.Parse(message);
|
||||
string xx = json["user_id"]?.ToString();
|
||||
if (xx != App.Configuration["QQConfig:XiaoXiaoRobotQQ"])
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
string groupMsg = JArray.Parse(json["message"].ToString()).FirstOrDefault(o => o["type"].ToString() == "text"
|
||||
&& !string.IsNullOrWhiteSpace(o["data"]["text"].ToString()) && (o["data"]["text"].ToString().Contains("道友本次采集成果") || o["data"]["text"].ToString().Contains("道友成功收获药材")))?["data"]?["text"]?.ToString();
|
||||
if (string.IsNullOrWhiteSpace(groupMsg)) return false;
|
||||
|
||||
Reference in New Issue
Block a user