Updated the Jackpot username setting to a list as Austin is now using multiple accounts there

This commit is contained in:
barelyprofessional
2025-04-13 18:19:30 -05:00
parent 1c1b6aa347
commit eb346cfe22
2 changed files with 7 additions and 7 deletions

View File

@@ -423,11 +423,11 @@ public class BotServices
{
var settings = Helpers
.GetMultipleValues([
BuiltIn.Keys.JackpotBmjUsername, BuiltIn.Keys.TwitchBossmanJackUsername,
BuiltIn.Keys.JackpotBmjUsernames, BuiltIn.Keys.TwitchBossmanJackUsername,
BuiltIn.Keys.KiwiFarmsGreenColor, BuiltIn.Keys.KiwiFarmsRedColor
]).Result;
_logger.Trace("Jackpot bet has arrived");
if (bet.User != settings[BuiltIn.Keys.JackpotBmjUsername].Value)
if (!settings[BuiltIn.Keys.JackpotBmjUsernames].ToType<List<string>>().Contains(bet.User))
{
return;
}

View File

@@ -483,13 +483,13 @@ public static class BuiltIn
},
new BuiltInSettingsModel()
{
Key = Keys.JackpotBmjUsername,
Key = Keys.JackpotBmjUsernames,
Regex = ".+",
Description = "Bossman's username on Jackpot",
Default = "TheBossmanJack",
Description = "Bossman's usernames on Jackpot",
Default = "[\"TheBossmanJack\", \"Austingambless757\"]",
IsSecret = false,
CacheDuration = TimeSpan.FromHours(1),
ValueType = SettingValueType.Text
ValueType = SettingValueType.Array
},
new BuiltInSettingsModel
{
@@ -964,7 +964,7 @@ public static class BuiltIn
public static string HowlggBmjUserId = "Howlgg.BmjUserId";
public static string KiwiFarmsGreenColor = "KiwiFarms.GreenColor";
public static string KiwiFarmsRedColor = "KiwiFarms.RedColor";
public static string JackpotBmjUsername = "Jackpot.BmjUsername";
public static string JackpotBmjUsernames = "Jackpot.BmjUsernames";
public static string RainbetBmjPublicIds = "Rainbet.BmjPublicIds";
public static string FlareSolverrApiUrl = "FlareSolverr.ApiUrl";
public static string FlareSolverrProxy = "FlareSolverr.Proxy";