添加了一个接口调用

This commit is contained in:
milimoe 2024-07-06 22:20:58 +08:00
parent 4105592845
commit d7e430f041
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E
2 changed files with 13 additions and 2 deletions

View File

@ -177,6 +177,17 @@ namespace Milimoe.RainBOT.ListeningTask
return;
});
}
if (e.detail == "买家秀")
{
TaskUtility.NewTask(async () =>
{
if (!await Bot.CheckBlackList(true, e.user_id, e.group_id)) return;
GroupMessageContent content = new(e.group_id);
content.message.Add(new ImageMessage("https://api.03c3.cn/api/taobaoBuyerShow"));
await Bot.SendGroupMessage(e.group_id, "Image", content);
return;
});
}
if (e.detail.Contains("来龙"))
{
TaskUtility.NewTask(async () =>

View File

@ -3,8 +3,8 @@
public class OSMCore
{
public const string version = "v1.0";
public const string version2 = "Patch8 Test";
public const string time = "July 5th, 2024";
public const string version2 = "Patch8 Test1";
public const string time = "July 6th, 2024";
public static string Info => $"OSM Core {version} {version2}\r\nAuthor: Milimoe\r\nBuilt on {time}\r\nSee: https://github.com/milimoe";
}