diff --git a/KfChatDotNetBot/Services/BotServices.cs b/KfChatDotNetBot/Services/BotServices.cs index 9f30db4..b0a10bf 100644 --- a/KfChatDotNetBot/Services/BotServices.cs +++ b/KfChatDotNetBot/Services/BotServices.cs @@ -682,7 +682,7 @@ public class BotServices private void OnStreamerIsLive(object sender, KickModels.StreamerIsLiveEventModel? e) { if (e == null) return; - var settings = Helpers.GetMultipleValues([BuiltIn.Keys.KickChannels, BuiltIn.Keys.BotToyStoryImage]).Result; + var settings = Helpers.GetMultipleValues([BuiltIn.Keys.KickChannels, BuiltIn.Keys.BotToyStoryImage, BuiltIn.Keys.BotToyStoryImageOnChrisDjLive]).Result; var channels = settings[BuiltIn.Keys.KickChannels].JsonDeserialize>(); if (channels == null) { @@ -708,7 +708,7 @@ public class BotServices _chatBot.SendChatMessage( $"@{user.KfUsername} is live! {e.Livestream.SessionTitle} https://kick.com/{channel.ChannelSlug}", true); - if (channel.ChannelSlug == "christopherdj") + if (channel.ChannelSlug == "christopherdj" && settings[BuiltIn.Keys.BotToyStoryImageOnChrisDjLive].ToBoolean()) { IsChrisDjLive = true; _chatBot.SendChatMessage($"[img]{settings[BuiltIn.Keys.BotToyStoryImage].Value}[/img]", true); diff --git a/KfChatDotNetBot/Settings/BuiltIn.cs b/KfChatDotNetBot/Settings/BuiltIn.cs index 7f0fd73..0af0ed6 100644 --- a/KfChatDotNetBot/Settings/BuiltIn.cs +++ b/KfChatDotNetBot/Settings/BuiltIn.cs @@ -830,6 +830,16 @@ public static class BuiltIn IsSecret = false, CacheDuration = TimeSpan.FromHours(1), ValueType = SettingValueType.Text + }, + new BuiltInSettingsModel + { + Key = Keys.BotToyStoryImageOnChrisDjLive, + Regex = "(true|false)", + Description = "Whether to spam the Toy Story image joke when ChrisDJ goes live while BossmanAustin is live", + Default = "false", + IsSecret = false, + CacheDuration = TimeSpan.FromHours(1), + ValueType = SettingValueType.Boolean } ]; @@ -897,5 +907,6 @@ public static class BuiltIn public static string BotImageAcceptableKeys = "Bot.Image.AcceptableKeys"; public static string BotToyStoryImage = "Bot.ToyStoryImage"; public static string BotImageRandomSliceDivideBy = "Bot.Image.RandomSliceDivideBy"; + public static string BotToyStoryImageOnChrisDjLive = "Bot.ToyStoryImageOnChrisDjLive"; } } \ No newline at end of file