diff --git a/src/ListeningTask/GroupMessageTask.cs b/src/ListeningTask/GroupMessageTask.cs index 759f455..b457526 100644 --- a/src/ListeningTask/GroupMessageTask.cs +++ b/src/ListeningTask/GroupMessageTask.cs @@ -140,6 +140,21 @@ namespace Milimoe.RainBOT.ListeningTask } return quick_reply; } + + if (e.detail.Length >= 3 && e.detail[..3].Equals("查技能", StringComparison.CurrentCultureIgnoreCase)) + { + if (!await Bot.CheckBlackList(true, e.user_id, e.group_id)) return quick_reply; + string detail = e.detail.Replace("查技能", "").Trim(); + if (int.TryParse(detail, out int id)) + { + string msg = (await Bot.HttpGet("https://api.milimoe.com/fungame/cjs?id=" + id) ?? "").Trim(); + if (msg != "") + { + await Bot.SendGroupMessage(e.group_id, "查询FunGame角色技能", msg); + } + } + return quick_reply; + } // 发图API if (e.detail == "来图") diff --git a/src/Properties/launchSettings.json b/src/Properties/launchSettings.json index 5f55d09..d4eae39 100644 --- a/src/Properties/launchSettings.json +++ b/src/Properties/launchSettings.json @@ -2,7 +2,7 @@ "profiles": { "RainBOT": { "commandName": "Project", - "commandLineArgs": "--debug -g667678970" + "commandLineArgs": "--debug -g766616821" } } } \ No newline at end of file