mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-12-11 20:55:56 +00:00
fixed the issue where manual library selection was selected, but no library was checked
This commit is contained in:
parent
5a0c7c75ed
commit
ae9fea4785
@ -54,6 +54,8 @@ namespace CompatBot.EventHandlers
|
|||||||
if (result == null)
|
if (result == null)
|
||||||
await args.Channel.SendMessageAsync("Log analysis failed, most likely cause is a truncated/invalid log. Please run the game again and reupload the new copy.").ConfigureAwait(false);
|
await args.Channel.SendMessageAsync("Log analysis failed, most likely cause is a truncated/invalid log. Please run the game again and reupload the new copy.").ConfigureAwait(false);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
await args.Channel.SendMessageAsync(embed: await result.AsEmbedAsync(args.Client, args.Message).ConfigureAwait(false)).ConfigureAwait(false);
|
await args.Channel.SendMessageAsync(embed: await result.AsEmbedAsync(args.Client, args.Message).ConfigureAwait(false)).ConfigureAwait(false);
|
||||||
if (result.Error == LogParseState.ErrorCode.PiracyDetected)
|
if (result.Error == LogParseState.ErrorCode.PiracyDetected)
|
||||||
@ -75,6 +77,11 @@ namespace CompatBot.EventHandlers
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
args.Client.DebugLogger.LogMessage(LogLevel.Error, "", "Sending log results failed: " + e, DateTime.Now);
|
||||||
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,6 +121,8 @@ namespace CompatBot.Utils.ResultFormatters
|
|||||||
var libList = libs.Split('\n').Select(l => l.Trim(' ', '\t', '-', '\r', '[', ']')).Where(s => !string.IsNullOrEmpty(s)).ToList();
|
var libList = libs.Split('\n').Select(l => l.Trim(' ', '\t', '-', '\r', '[', ']')).Where(s => !string.IsNullOrEmpty(s)).ToList();
|
||||||
items["library_list"] = libList.Count > 0 ? string.Join(", ", libList) : "None";
|
items["library_list"] = libList.Count > 0 ? string.Join(", ", libList) : "None";
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
items["library_list"] = "None";
|
||||||
|
|
||||||
foreach (var key in items.AllKeys)
|
foreach (var key in items.AllKeys)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user