diff --git a/ArchiSteamFarm/Steam/Bot.cs b/ArchiSteamFarm/Steam/Bot.cs index fa128f43a..ff0a9cc5e 100644 --- a/ArchiSteamFarm/Steam/Bot.cs +++ b/ArchiSteamFarm/Steam/Bot.cs @@ -1536,7 +1536,7 @@ public sealed class Bot : IAsyncDisposable, IDisposable { 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 @@ public sealed class Bot : IAsyncDisposable, IDisposable { 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 ad5a8220d..6020a14c2 100644 --- a/ArchiSteamFarm/Steam/Storage/BotConfig.cs +++ b/ArchiSteamFarm/Steam/Storage/BotConfig.cs @@ -520,7 +520,7 @@ public sealed class 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)) {