mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-03-03 15:29:22 +00:00
tweak some things
This commit is contained in:
parent
da595d62f4
commit
988a43e8a5
@ -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"));
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user