From 6a55555e4837ed5e2cdb517aca85ffc79b3aef7b Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 22 Dec 2019 01:08:14 +0100 Subject: [PATCH] Attempt a few memory/connection optimizations --- PluralKit.Bot/Bot.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PluralKit.Bot/Bot.cs b/PluralKit.Bot/Bot.cs index 289d1941..b7e107f0 100644 --- a/PluralKit.Bot/Bot.cs +++ b/PluralKit.Bot/Bot.cs @@ -84,7 +84,8 @@ namespace PluralKit.Bot .AddSingleton(_ => new DiscordShardedClient(new DiscordSocketConfig { - MessageCacheSize = 5, + MessageCacheSize = 0, + ConnectionTimeout = 2*60*1000, ExclusiveBulkDelete = true, DefaultRetryMode = RetryMode.AlwaysRetry, // Commented this out since Debug actually sends, uh, quite a lot that's not necessary in production