Skip to content

Commit

Permalink
Try another resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Sella-GH committed Dec 23, 2024
1 parent 8313e57 commit f467655
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/AzzyBot.Core/Utilities/SoftwareStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ public static DateTimeOffset GetAppUptime()
private static string GetAppFilePath()
{
string fileName = Path.Combine(AppContext.BaseDirectory, AppDomain.CurrentDomain.FriendlyName);
Console.WriteLine(fileName);
if (!HardwareStats.CheckIfLinuxOs)
fileName += ".exe";

Console.WriteLine(fileName);

return (!string.IsNullOrEmpty(fileName))
? Path.Combine(AppContext.BaseDirectory, fileName)
? fileName
: throw new InvalidOperationException("Bot file path not found");
}
}

0 comments on commit f467655

Please sign in to comment.