tweak some things

This commit is contained in:
13xforever 2020-04-04 10:48:31 +05:00
parent da595d62f4
commit 988a43e8a5
2 changed files with 2 additions and 1 deletions

View File

@ -68,6 +68,7 @@ namespace CompatBot
public static Guid AzureDevOpsProjectId => config.GetValue(nameof(AzureDevOpsProjectId), new Guid("3598951b-4d39-4fad-ad3b-ff2386a649de"));
public static string LogPath => config.GetValue(nameof(LogPath), "./logs/"); // paths are relative to the working directory
public static string IrdCachePath => config.GetValue(nameof(IrdCachePath), "./ird/");
public static double GameTitleMatchThreshold => config.GetValue(nameof(GameTitleMatchThreshold), 0.57);
internal static string CurrentLogPath => Path.GetFullPath(Path.Combine(LogPath, "bot.log"));

View File

@ -114,7 +114,7 @@ namespace CompatBot.EventHandlers
bestMatch = listWithStatus.First();
var (code, info, score) = bestMatch;
Config.Log.Debug($"Looked up \"{gameTitle}\", got \"{info?.Title}\" with score {score}");
if (score < 0.51)
if (score < Config.GameTitleMatchThreshold)
return (null, null);
if (!string.IsNullOrEmpty(info?.Title))