mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
27 lines
868 B
C#
27 lines
868 B
C#
using CompatBot.Utils.ResultFormatters;
|
|
using IrdLibraryClient;
|
|
|
|
namespace CompatBot.Commands;
|
|
|
|
/*
|
|
internal sealed class Ird
|
|
{
|
|
private static readonly IrdClient Client = new();
|
|
|
|
[Command("ird"), TriggersTyping]
|
|
[Description("Searches IRD Library for the matching .ird files")]
|
|
public async Task Search(CommandContext ctx, [RemainingText, Description("Product code or game title to look up")] string query)
|
|
{
|
|
if (string.IsNullOrEmpty(query))
|
|
{
|
|
await ctx.ReactWithAsync(Config.Reactions.Failure, "Can't search for nothing, boss").ConfigureAwait(false);
|
|
return;
|
|
}
|
|
|
|
var result = await Client.SearchAsync(query, Config.Cts.Token).ConfigureAwait(false);
|
|
var embed = result.AsEmbed();
|
|
await ctx.Channel.SendMessageAsync(embed: embed).ConfigureAwait(false);
|
|
}
|
|
}
|
|
*/
|