Make sending the Toy Story image when ChrisDJ goes live while BossmanAustin is live optional and off by default

This commit is contained in:
barelyprofessional
2025-02-17 20:08:06 +08:00
parent b65659d637
commit e3ce5dfd4a
2 changed files with 13 additions and 2 deletions

View File

@@ -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<List<KickChannelModel>>();
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);