From e58aca5af7cbd08e35b2f9dcc544e6e72a524b12 Mon Sep 17 00:00:00 2001 From: Mira <56395159+TheXorog@users.noreply.github.com> Date: Tue, 1 Apr 2025 17:37:56 +0200 Subject: [PATCH] fix: fix missing CompiledCommands check --- ProjectMakoto/Util/Initializers/DisCatSharpExtensionsLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectMakoto/Util/Initializers/DisCatSharpExtensionsLoader.cs b/ProjectMakoto/Util/Initializers/DisCatSharpExtensionsLoader.cs index 9b65b1cf..304e71c3 100644 --- a/ProjectMakoto/Util/Initializers/DisCatSharpExtensionsLoader.cs +++ b/ProjectMakoto/Util/Initializers/DisCatSharpExtensionsLoader.cs @@ -260,7 +260,7 @@ internal static class DisCatSharpExtensionsLoader DebugStartup = true }); - if (bot.status.CurrentAppHash != bot.status.LoadedConfig.DontModify.LastKnownHash) + if (bot.status.CurrentAppHash != bot.status.LoadedConfig.DontModify.LastKnownHash && Directory.Exists("CompiledCommands")) { Log.Debug("Clearing cached Commands.."); await FileExtensions.CleanupFilesAndDirectories(new(), Directory.GetFiles("CompiledCommands").ToList());