add closed beta disc codes to allowed product code lookups

but seriously, do you really expect updates for these discs on public endpoints? at best they'll be on test/internal, which bot doesn't even use
This commit is contained in:
13xforever
2023-03-09 01:01:19 +05:00
parent 6edfb69eaf
commit 2b02782cf6

View File

@@ -19,7 +19,7 @@ namespace CompatBot.EventHandlers;
internal static class ProductCodeLookup
{
// see http://www.psdevwiki.com/ps3/Productcode
public static readonly Regex ProductCode = new(@"(?<letters>(?:[BPSUVX][CL]|P[ETU]|NP)[AEHJKPUIX][ABJKLMPQRS]|MRTC)[ \-]?(?<numbers>\d{5})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
public static readonly Regex ProductCode = new(@"(?<letters>(?:[BPSUVX][CL]|P[ETU]|NP)[AEHJKPUIX][ABJKLMPQRST]|MRTC)[ \-]?(?<numbers>\d{5})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Client CompatClient = new();
public static async Task OnMessageCreated(DiscordClient c, MessageCreateEventArgs args)