fix: fix missing CompiledCommands check

This commit is contained in:
Mira 2025-04-01 17:37:56 +02:00
parent b7d814936f
commit e58aca5af7
Signed by untrusted user who does not match committer: Xorog
GPG key ID: 983798ED9C3E7C36

View file

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