diff --git a/ArchiSteamFarm/Steam/Bot.cs b/ArchiSteamFarm/Steam/Bot.cs index fa128f43afb55..ff0a9cc5ed482 100644 --- a/ArchiSteamFarm/Steam/Bot.cs +++ b/ArchiSteamFarm/Steam/Bot.cs @@ -1536,7 +1536,7 @@ internal async Task OnConfigChanged(bool deleted) { throw new InvalidOperationException(nameof(configFile)); } - (BotConfig? botConfig, _) = await BotConfig.Load(configFile, BotName).ConfigureAwait(false); + (BotConfig? botConfig, _) = await BotConfig.Load(configFile).ConfigureAwait(false); if (botConfig == null) { // Invalid config file, we allow user to fix it without destroying the bot right away @@ -1684,7 +1684,7 @@ internal static async Task RegisterBot(string botName) { return; } - (BotConfig? botConfig, string? latestJson) = await BotConfig.Load(configFilePath, botName).ConfigureAwait(false); + (BotConfig? botConfig, string? latestJson) = await BotConfig.Load(configFilePath).ConfigureAwait(false); if (botConfig == null) { ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.ErrorBotConfigInvalid, configFilePath)); diff --git a/ArchiSteamFarm/Steam/Storage/BotConfig.cs b/ArchiSteamFarm/Steam/Storage/BotConfig.cs index ad5a8220dea9b..6020a14c2e8d1 100644 --- a/ArchiSteamFarm/Steam/Storage/BotConfig.cs +++ b/ArchiSteamFarm/Steam/Storage/BotConfig.cs @@ -520,7 +520,7 @@ public static async Task Write(string filePath, BotConfig botConfig) { return result; } - internal static async Task<(BotConfig? BotConfig, string? LatestJson)> Load(string filePath, string? botName = null) { + internal static async Task<(BotConfig? BotConfig, string? LatestJson)> Load(string filePath) { ArgumentException.ThrowIfNullOrEmpty(filePath); if (!File.Exists(filePath)) {