mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
enable zstd gateway compression
This commit is contained in:
@@ -8,6 +8,7 @@ using CompatApiClient;
|
||||
using CompatApiClient.Compression;
|
||||
using CompatApiClient.POCOs;
|
||||
using CompatApiClient.Utils;
|
||||
using CompatBot.Commands.AutoCompleteProviders;
|
||||
using CompatBot.Database;
|
||||
using CompatBot.Database.Providers;
|
||||
using CompatBot.EventHandlers;
|
||||
@@ -54,7 +55,12 @@ internal static partial class CompatList
|
||||
|
||||
[Command("compatibility")]
|
||||
[Description("Search the game compatibility list")]
|
||||
public static async ValueTask Compat(SlashCommandContext ctx, [Description("Game title or product code to look up")] string title)
|
||||
public static async ValueTask Compat(
|
||||
SlashCommandContext ctx,
|
||||
[Description("Game title or product code to look up")]
|
||||
[SlashAutoCompleteProvider<ProductCodeAutoCompleteProvider>]
|
||||
string title
|
||||
)
|
||||
{
|
||||
if (await ContentFilter.FindTriggerAsync(FilterContext.Chat, title).ConfigureAwait(false) is not null)
|
||||
{
|
||||
|
||||
@@ -134,6 +134,8 @@ internal static class Program
|
||||
var mediaScreenshotMonitor = new MediaScreenshotMonitor();
|
||||
var clientBuilder = DiscordClientBuilder
|
||||
.CreateDefault(Config.Token, DiscordIntents.All)
|
||||
.ConfigureLogging(builder => builder.AddNLog(LogManager.Configuration))
|
||||
.UseZstdCompression()
|
||||
.UseCommands((services, extension) =>
|
||||
{
|
||||
var textCommandProcessor = new TextCommandProcessor(new()
|
||||
@@ -175,7 +177,6 @@ internal static class Program
|
||||
#endif
|
||||
})
|
||||
.UseInteractivity()
|
||||
.ConfigureLogging(builder => builder.AddNLog(LogManager.Configuration))
|
||||
.ConfigureEventHandlers(config =>
|
||||
{
|
||||
config.HandleSessionCreated(async (c, sceArgs) =>
|
||||
|
||||
Reference in New Issue
Block a user