mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Updated the Jackpot username setting to a list as Austin is now using multiple accounts there
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user