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());