mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added a setting for the initial value of the GambaSesh Discord bypass variable
This commit is contained in:
@@ -39,13 +39,15 @@ public class BotServices
|
||||
internal bool IsChrisDjLive = false;
|
||||
|
||||
// lol
|
||||
internal bool TemporarilyBypassGambaSeshForDiscord = false;
|
||||
internal bool TemporarilyBypassGambaSeshForDiscord;
|
||||
internal bool TemporarilySuppressGambaMessages = false;
|
||||
|
||||
public BotServices(ChatBot botInstance, CancellationToken ctx)
|
||||
{
|
||||
_chatBot = botInstance;
|
||||
_cancellationToken = ctx;
|
||||
TemporarilyBypassGambaSeshForDiscord =
|
||||
Helpers.GetValue(BuiltIn.Keys.DiscordTemporarilyBypassGambaSeshInitialValue).Result.ToBoolean();
|
||||
|
||||
_logger.Info("Bot services ready to initialize!");
|
||||
}
|
||||
|
||||
@@ -850,6 +850,16 @@ public static class BuiltIn
|
||||
IsSecret = false,
|
||||
CacheDuration = TimeSpan.FromHours(1),
|
||||
ValueType = SettingValueType.Text
|
||||
},
|
||||
new BuiltInSettingsModel
|
||||
{
|
||||
Key = Keys.DiscordTemporarilyBypassGambaSeshInitialValue,
|
||||
Regex = "(true|false)",
|
||||
Description = "What the initial value of the Discord GambaSesh temporary bypass variable should be",
|
||||
Default = "false",
|
||||
IsSecret = false,
|
||||
CacheDuration = TimeSpan.FromHours(1),
|
||||
ValueType = SettingValueType.Boolean
|
||||
}
|
||||
];
|
||||
|
||||
@@ -919,5 +929,7 @@ public static class BuiltIn
|
||||
public static string BotImageRandomSliceDivideBy = "Bot.Image.RandomSliceDivideBy";
|
||||
public static string TwitchCommercialRestreamShillMessage = "Twitch.CommercialRestreamShillMessage";
|
||||
public static string BotChrisDjLiveImage = "Bot.ChrisDjLiveImage";
|
||||
public static string DiscordTemporarilyBypassGambaSeshInitialValue =
|
||||
"Discord.TemporarilyBypassGambaSeshInitialValue";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user