Add support for .keys file to FileSystemWatcher

This commit is contained in:
JustArchi
2018-02-17 19:29:33 +01:00
parent 08e64193fe
commit c968716940
4 changed files with 199 additions and 95 deletions

View File

@@ -336,7 +336,7 @@ namespace ArchiSteamFarm {
}
}
string filePath = Path.Combine(SharedInfo.ConfigDirectory, botName + ".json");
string filePath = Path.Combine(SharedInfo.ConfigDirectory, botName + SharedInfo.ConfigExtension);
if (!await BotConfig.Write(filePath, jsonRequest.BotConfig).ConfigureAwait(false)) {
await ResponseJsonObject(request, response, new GenericResponse(false, "Writing bot config failed, check ASF log for details"), HttpStatusCode.BadRequest).ConfigureAwait(false);