Swapped over to a const property for the most common regexes in use for settings

This commit is contained in:
barelyprofessional
2025-08-04 17:48:07 -05:00
parent 3ea031963d
commit 15abb0fc8b

View File

@@ -158,6 +158,9 @@ public static class BuiltIn
logger.Error(e); logger.Error(e);
} }
} }
private const string BooleanRegex = "true|false";
private const string WholeNumberRegex = @"\d+";
public static List<BuiltInSettingsModel> BuiltInSettings = public static List<BuiltInSettingsModel> BuiltInSettings =
[ [
@@ -180,7 +183,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.KiwiFarmsRoomId, Key = Keys.KiwiFarmsRoomId,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = Description =
"Kiwi Farms Keno Kasino room ID", "Kiwi Farms Keno Kasino room ID",
Default = "15", Default = "15",
@@ -197,7 +200,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.KiwiFarmsWsReconnectTimeout, Key = Keys.KiwiFarmsWsReconnectTimeout,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = Description =
"Kiwi Farms chat reconnect timeout", "Kiwi Farms chat reconnect timeout",
Default = "30", Default = "30",
@@ -206,7 +209,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.PusherReconnectTimeout, Key = Keys.PusherReconnectTimeout,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = Description =
"Pusher reconnect timeout", "Pusher reconnect timeout",
Default = "30", Default = "30",
@@ -215,7 +218,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.GambaSeshDetectEnabled, Key = Keys.GambaSeshDetectEnabled,
Regex = @"true|false", Regex = BooleanRegex,
Description = Description =
"Whether to enable detection for the presence of GambaSesh", "Whether to enable detection for the presence of GambaSesh",
Default = "true", Default = "true",
@@ -225,7 +228,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.GambaSeshUserId, Key = Keys.GambaSeshUserId,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = Description =
"GambaSesh's uer ID for the purposes of detection", "GambaSesh's uer ID for the purposes of detection",
Default = "168162", Default = "168162",
@@ -268,7 +271,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.TwitchBossmanJackId, Key = Keys.TwitchBossmanJackId,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = Description =
"BossmanJack's Twitch channel ID", "BossmanJack's Twitch channel ID",
Default = "114122847", Default = "114122847",
@@ -285,7 +288,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.KiwiFarmsSuppressChatMessages, Key = Keys.KiwiFarmsSuppressChatMessages,
Regex = @"true|false", Regex = BooleanRegex,
Description = Description =
"Enable to prevent messages from actually being sent to chat.", "Enable to prevent messages from actually being sent to chat.",
Default = "false", Default = "false",
@@ -303,7 +306,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.DiscordBmjId, Key = Keys.DiscordBmjId,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = Description =
"BossmanJack's Discord user ID", "BossmanJack's Discord user ID",
Default = "554123642246529046", Default = "554123642246529046",
@@ -333,7 +336,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.JuiceCooldown, Key = Keys.JuiceCooldown,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Cooldown (in seconds) until you can get juiced again", Description = "Cooldown (in seconds) until you can get juiced again",
Default = "3600", Default = "3600",
CacheDuration = TimeSpan.FromMinutes(5), CacheDuration = TimeSpan.FromMinutes(5),
@@ -342,7 +345,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.JuiceAmount, Key = Keys.JuiceAmount,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Amount of $KKK to juice", Description = "Amount of $KKK to juice",
Default = "50", Default = "50",
CacheDuration = TimeSpan.FromMinutes(5), CacheDuration = TimeSpan.FromMinutes(5),
@@ -351,7 +354,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.KickEnabled, Key = Keys.KickEnabled,
Regex = "true|false", Regex = BooleanRegex,
Description = "Whether to enable Kick functionality (Pusher websocket mainly)", Description = "Whether to enable Kick functionality (Pusher websocket mainly)",
Default = "true", Default = "true",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -359,7 +362,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.HowlggDivisionAmount, Key = Keys.HowlggDivisionAmount,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "How much to divide the Howlgg bets/profit by to get the real value", Description = "How much to divide the Howlgg bets/profit by to get the real value",
Default = "1650", Default = "1650",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -424,7 +427,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.HowlggBmjUserId, Key = Keys.HowlggBmjUserId,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "BMJ's user ID on howl.gg", Description = "BMJ's user ID on howl.gg",
Default = "951905", Default = "951905",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -441,7 +444,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.TwitchShillRestreamOnCommercial, Key = Keys.TwitchShillRestreamOnCommercial,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Whether to shill the ad-free restream on commercial", Description = "Whether to shill the ad-free restream on commercial",
Default = "true", Default = "true",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -449,7 +452,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.KiwiFarmsInactivityTimeout, Key = Keys.KiwiFarmsInactivityTimeout,
Regex = @"\d+", Regex = WholeNumberRegex,
// You would think the WS library would trip up with the "NoMessageReceived" exception, but there's some bug // You would think the WS library would trip up with the "NoMessageReceived" exception, but there's some bug
// where it'll occasionally fail to reconnect properly and sit there dead forever, hence the watchdog timer // where it'll occasionally fail to reconnect properly and sit there dead forever, hence the watchdog timer
Description = "Length of time the client can go without receiving ANY packets from Sneedchat before forcing a reconnect.", Description = "Length of time the client can go without receiving ANY packets from Sneedchat before forcing a reconnect.",
@@ -459,7 +462,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.KiwiFarmsPingInterval, Key = Keys.KiwiFarmsPingInterval,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Interval in seconds to ping Sneedchat using the non-existent /ping command. " + Description = "Interval in seconds to ping Sneedchat using the non-existent /ping command. " +
"Note this affects how often the bot will check inactivity of the connection.", "Note this affects how often the bot will check inactivity of the connection.",
Default = "10", Default = "10",
@@ -468,7 +471,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.JuiceLoserDivision, Key = Keys.JuiceLoserDivision,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Amount to divide the juice by if the user's rack is Loser", Description = "Amount to divide the juice by if the user's rack is Loser",
Default = "5", Default = "5",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -476,7 +479,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.CrackedZalgoFuckUpMode, Key = Keys.CrackedZalgoFuckUpMode,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "FuckUpMode. 0 = Min, 1 = Normal, 2 = Max", Description = "FuckUpMode. 0 = Min, 1 = Normal, 2 = Max",
Default = "1", Default = "1",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -484,7 +487,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.CrackedZalgoFuckUpPosition, Key = Keys.CrackedZalgoFuckUpPosition,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "FuckUpPosition: 1 = Up, 2 = Middle, 3 = UpAndMiddle, 4 = Bot (Bottom), 5 = UpAndBot, 6 = MiddleAndBot, 7 = All", Description = "FuckUpPosition: 1 = Up, 2 = Middle, 3 = UpAndMiddle, 4 = Bot (Bottom), 5 = UpAndBot, 6 = MiddleAndBot, 7 = All",
Default = "2", Default = "2",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -492,7 +495,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.BotDisconnectReplayLimit, Key = Keys.BotDisconnectReplayLimit,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Limit of messages which could not be sent while bot was disconnected to replay on connect", Description = "Limit of messages which could not be sent while bot was disconnected to replay on connect",
Default = "10", Default = "10",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -500,7 +503,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.KiwiFarmsJoinFailLimit, Key = Keys.KiwiFarmsJoinFailLimit,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Limit of times to fail joining the room before wiping cookies", Description = "Limit of times to fail joining the room before wiping cookies",
Default = "2", Default = "2",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -553,7 +556,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.HowlggEnabled, Key = Keys.HowlggEnabled,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Whether the Howl.gg integration is enabled at all", Description = "Whether the Howl.gg integration is enabled at all",
Default = "false", Default = "false",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -561,7 +564,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.ChipsggEnabled, Key = Keys.ChipsggEnabled,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Whether the Chips.gg integration is enabled at all", Description = "Whether the Chips.gg integration is enabled at all",
Default = "false", Default = "false",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -569,7 +572,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.RainbetEnabled, Key = Keys.RainbetEnabled,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Whether the Rainbet integration is enabled at all", Description = "Whether the Rainbet integration is enabled at all",
Default = "false", Default = "false",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -591,7 +594,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.BotImageRandomSliceDivideBy, Key = Keys.BotImageRandomSliceDivideBy,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "What value to divide the image count by for determining how many images to randomly choose from. " + Description = "What value to divide the image count by for determining how many images to randomly choose from. " +
"e.g. a value of 10 on 50 images means the 5 least seen images are chosen from randomly. " + "e.g. a value of 10 on 50 images means the 5 least seen images are chosen from randomly. " +
"If the count of images is =< this value, it'll just grab the oldest image. " + "If the count of images is =< this value, it'll just grab the oldest image. " +
@@ -616,7 +619,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.DiscordTemporarilyBypassGambaSeshInitialValue, Key = Keys.DiscordTemporarilyBypassGambaSeshInitialValue,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "What the initial value of the Discord GambaSesh temporary bypass variable should be", Description = "What the initial value of the Discord GambaSesh temporary bypass variable should be",
Default = "false", Default = "false",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -624,7 +627,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.BotKeesSeen, Key = Keys.BotKeesSeen,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Track if Kees has been seen so users can receive a one-time notice if he suddenly shows up", Description = "Track if Kees has been seen so users can receive a one-time notice if he suddenly shows up",
Default = "false", Default = "false",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -632,7 +635,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.ClashggEnabled, Key = Keys.ClashggEnabled,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Whether the Clash.gg integration should be enabled", Description = "Whether the Clash.gg integration should be enabled",
Default = "true", Default = "true",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -654,7 +657,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.BotAlmanacInterval, Key = Keys.BotAlmanacInterval,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Interval for Almanac reminders in seconds", Description = "Interval for Almanac reminders in seconds",
Default = "14400", // 4 hours Default = "14400", // 4 hours
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -662,7 +665,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.BotAlmanacInitialState, Key = Keys.BotAlmanacInitialState,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Initial state of the Almanac reminder", Description = "Initial state of the Almanac reminder",
Default = "false", Default = "false",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -670,7 +673,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.JuiceAllowedWhileStreaming, Key = Keys.JuiceAllowedWhileStreaming,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Whether to allow juicers while Austin is streaming", Description = "Whether to allow juicers while Austin is streaming",
Default = "false", Default = "false",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -678,7 +681,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.BotImagePigCubeSelfDestruct, Key = Keys.BotImagePigCubeSelfDestruct,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Whether the pigcube should self destruct after a random interval", Description = "Whether the pigcube should self destruct after a random interval",
Default = "true", Default = "true",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -693,7 +696,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.JuiceAutoDeleteMsgDelay, Key = Keys.JuiceAutoDeleteMsgDelay,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Delay before deleting the !juice message in milliseconds, null or 0 to disable. " + Description = "Delay before deleting the !juice message in milliseconds, null or 0 to disable. " +
"Don't set too high as the timeout for !juiceme is 60 seconds", "Don't set too high as the timeout for !juiceme is 60 seconds",
Default = "2500", Default = "2500",
@@ -702,7 +705,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.BotImagePigCubeSelfDestructMin, Key = Keys.BotImagePigCubeSelfDestructMin,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Min value for the Pig Cube self destruct Random.Next() in milliseconds", Description = "Min value for the Pig Cube self destruct Random.Next() in milliseconds",
Default = "5000", Default = "5000",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -710,7 +713,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.BotImagePigCubeSelfDestructMax, Key = Keys.BotImagePigCubeSelfDestructMax,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Max value for the Pig Cube self destruct Random.Next() in milliseconds", Description = "Max value for the Pig Cube self destruct Random.Next() in milliseconds",
Default = "15000", Default = "15000",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -718,7 +721,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.BotImageInvertedPigCubeSelfDestructDelay, Key = Keys.BotImageInvertedPigCubeSelfDestructDelay,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Value in milliseconds for how long the bot should wait before self destructing the inverted pig cube", Description = "Value in milliseconds for how long the bot should wait before self destructing the inverted pig cube",
Default = "5000", Default = "5000",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -726,7 +729,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.BetBoltEnabled, Key = Keys.BetBoltEnabled,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Whether to enable the BetBolt bet feed tracking", Description = "Whether to enable the BetBolt bet feed tracking",
Default = "true", Default = "true",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -741,7 +744,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.YeetEnabled, Key = Keys.YeetEnabled,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Whether to enable the Yeet bet feed tracking", Description = "Whether to enable the Yeet bet feed tracking",
Default = "true", Default = "true",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -756,7 +759,6 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.YeetProxy, Key = Keys.YeetProxy,
Regex = ".+",
Description = "Proxy to use for Yeet", Description = "Proxy to use for Yeet",
Default = "socks5://ca-van-wg-socks5-301.relays.mullvad.net:1080", Default = "socks5://ca-van-wg-socks5-301.relays.mullvad.net:1080",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -764,7 +766,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.MomCooldown, Key = Keys.MomCooldown,
Regex = @"\d+", Regex = WholeNumberRegex,
Description = "Cooldown in seconds for the mom command, 0 to disable", Description = "Cooldown in seconds for the mom command, 0 to disable",
Default = "30", Default = "30",
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
@@ -808,7 +810,7 @@ public static class BuiltIn
{ {
Key = Keys.CaptureEnabled, Key = Keys.CaptureEnabled,
Description = "Whether the auto-capture system is enabled", Description = "Whether the auto-capture system is enabled",
Regex = "(true|false)", Regex = BooleanRegex,
Default = "true", Default = "true",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
}, },
@@ -831,7 +833,7 @@ public static class BuiltIn
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
Key = Keys.PartiEnabled, Key = Keys.PartiEnabled,
Regex = "(true|false)", Regex = BooleanRegex,
Description = "Whether the Parti stream notification service is enabled", Description = "Whether the Parti stream notification service is enabled",
Default = "true", Default = "true",
ValueType = SettingValueType.Boolean ValueType = SettingValueType.Boolean
@@ -871,7 +873,7 @@ public static class BuiltIn
Key = Keys.DLiveCheckInterval, Key = Keys.DLiveCheckInterval,
Description = "How often (in seconds) to check if a DLive streamer is live", Description = "How often (in seconds) to check if a DLive streamer is live",
Default = "15", Default = "15",
Regex = @"\d+", Regex = WholeNumberRegex,
ValueType = SettingValueType.Text ValueType = SettingValueType.Text
}, },
new BuiltInSettingsModel new BuiltInSettingsModel
@@ -894,7 +896,7 @@ public static class BuiltIn
Description = "Whether the Kiwi PeerTube live notification is enabled", Description = "Whether the Kiwi PeerTube live notification is enabled",
Default = "true", Default = "true",
ValueType = SettingValueType.Boolean, ValueType = SettingValueType.Boolean,
Regex = "(true|false)" Regex = BooleanRegex
}, },
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
@@ -902,7 +904,7 @@ public static class BuiltIn
Description = "Interval (in seconds) to check live streams", Description = "Interval (in seconds) to check live streams",
Default = "10", Default = "10",
ValueType = SettingValueType.Text, ValueType = SettingValueType.Text,
Regex = @"\d+" Regex = WholeNumberRegex
}, },
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
@@ -910,7 +912,7 @@ public static class BuiltIn
Description = "Whether to enforce the use of a whitelist (i.e. streamer must be in the database)", Description = "Whether to enforce the use of a whitelist (i.e. streamer must be in the database)",
Default = "false", Default = "false",
ValueType = SettingValueType.Boolean, ValueType = SettingValueType.Boolean,
Regex = "(true|false)" Regex = BooleanRegex
}, },
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
@@ -918,7 +920,7 @@ public static class BuiltIn
Description = "Interval in seconds for checking if the bot is completely dead", Description = "Interval in seconds for checking if the bot is completely dead",
Default = "15", Default = "15",
ValueType = SettingValueType.Text, ValueType = SettingValueType.Text,
Regex = @"\d+" Regex = WholeNumberRegex
}, },
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
@@ -926,7 +928,7 @@ public static class BuiltIn
Description = "Whether the bot should exit if it's dead and unrecoverable", Description = "Whether the bot should exit if it's dead and unrecoverable",
Default = "true", Default = "true",
ValueType = SettingValueType.Boolean, ValueType = SettingValueType.Boolean,
Regex = "(true|false)" Regex = BooleanRegex
}, },
new BuiltInSettingsModel new BuiltInSettingsModel
{ {
@@ -935,6 +937,8 @@ public static class BuiltIn
Default = "true", Default = "true",
ValueType = SettingValueType.Boolean, ValueType = SettingValueType.Boolean,
Regex = "(true|false)" Regex = "(true|false)"
Regex = BooleanRegex
},
} }
]; ];
@@ -1041,5 +1045,8 @@ public static class BuiltIn
public static string BotDeadBotDetectionInterval = "Bot.DeadBotDetectionInterval"; public static string BotDeadBotDetectionInterval = "Bot.DeadBotDetectionInterval";
public static string BotExitOnDeath = "Bot.ExitOnDeath"; public static string BotExitOnDeath = "Bot.ExitOnDeath";
public static string BotRespondToDiscordImpersonation = "Bot.RespondToDiscordImpersonation"; public static string BotRespondToDiscordImpersonation = "Bot.RespondToDiscordImpersonation";
public static string MoneySymbolSuffix = "Money.SymbolSuffix";
public static string MoneySymbolPrefix = "Money.SymbolPrefix";
public static string MoneyEnabled = "Money.Enabled";
} }
} }