From 96cb5e9f1b5bf396cf493317344fbdc79e9a2625 Mon Sep 17 00:00:00 2001 From: JiuAi Date: Tue, 14 Mar 2023 19:12:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8Aonline=E4=B9=9F=E5=8A=A0=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WFBot/Features/Commands/SearchCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WFBot/Features/Commands/SearchCommands.cs b/WFBot/Features/Commands/SearchCommands.cs index 6c94413..33b5354 100644 --- a/WFBot/Features/Commands/SearchCommands.cs +++ b/WFBot/Features/Commands/SearchCommands.cs @@ -128,7 +128,7 @@ public async Task SendRivenAuctions(string name) if (i != null) { var auctions1 = PGOCache.Rivens.ContainsKey(weapon.urlname) ? PGOCache.Rivens[weapon.urlname] : await GetRivenAuctions(weapon.urlname); - var rivens = auctions1.FindAll(r => r.Owner.Status == "ingame").Take(Config.Instance.WFASearchCount).ToList(); + var rivens = auctions1.FindAll(r => r.Owner.Status == "ingame" || r.Owner.Status == "online").Take(Config.Instance.WFASearchCount).ToList(); SendImageAndText(i, rivens.Select(x => x.Owner.IngameName).Connect(", ")); return null; } @@ -137,7 +137,7 @@ public async Task SendRivenAuctions(string name) if (AsyncContext.GetUseImageRendering()) { - var rivens = auctions.FindAll(r => r.Owner.Status == "ingame").Take(Config.Instance.WFASearchCount).ToList(); + var rivens = auctions.FindAll(r => r.Owner.Status == "ingame" || r.Owner.Status == "online").Take(Config.Instance.WFASearchCount).ToList(); var image = ImageRenderHelper.RivenAuction(rivens, weapon); SendImageAndText(image, rivens.Select(x => x.Owner.IngameName).Connect(", ")); return null;