Skip to content

Commit

Permalink
把online也加上
Browse files Browse the repository at this point in the history
  • Loading branch information
9ikj committed Mar 14, 2023
1 parent 501e5d9 commit 96cb5e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WFBot/Features/Commands/SearchCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public async Task<string> 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;
}
Expand All @@ -137,7 +137,7 @@ public async Task<string> 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;
Expand Down

0 comments on commit 96cb5e9

Please sign in to comment.