mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
Added an image for when christopherdj goes live and removed the checks for if austingambles is live
This commit is contained in:
@@ -682,7 +682,7 @@ public class BotServices
|
|||||||
private void OnStreamerIsLive(object sender, KickModels.StreamerIsLiveEventModel? e)
|
private void OnStreamerIsLive(object sender, KickModels.StreamerIsLiveEventModel? e)
|
||||||
{
|
{
|
||||||
if (e == null) return;
|
if (e == null) return;
|
||||||
var settings = Helpers.GetMultipleValues([BuiltIn.Keys.KickChannels, BuiltIn.Keys.BotToyStoryImage, BuiltIn.Keys.BotToyStoryImageOnChrisDjLive]).Result;
|
var settings = Helpers.GetMultipleValues([BuiltIn.Keys.KickChannels, BuiltIn.Keys.BotChrisDjLiveImage]).Result;
|
||||||
var channels = settings[BuiltIn.Keys.KickChannels].JsonDeserialize<List<KickChannelModel>>();
|
var channels = settings[BuiltIn.Keys.KickChannels].JsonDeserialize<List<KickChannelModel>>();
|
||||||
if (channels == null)
|
if (channels == null)
|
||||||
{
|
{
|
||||||
@@ -708,10 +708,10 @@ public class BotServices
|
|||||||
_chatBot.SendChatMessage(
|
_chatBot.SendChatMessage(
|
||||||
$"@{user.KfUsername} is live! {e.Livestream.SessionTitle} https://kick.com/{channel.ChannelSlug}", true);
|
$"@{user.KfUsername} is live! {e.Livestream.SessionTitle} https://kick.com/{channel.ChannelSlug}", true);
|
||||||
|
|
||||||
if (channel.ChannelSlug == "christopherdj" && settings[BuiltIn.Keys.BotToyStoryImageOnChrisDjLive].ToBoolean() && _isBmjLiveSynced && IsBmjLive)
|
if (channel.ChannelSlug == "christopherdj")
|
||||||
{
|
{
|
||||||
IsChrisDjLive = true;
|
IsChrisDjLive = true;
|
||||||
_chatBot.SendChatMessage($"[img]{settings[BuiltIn.Keys.BotToyStoryImage].Value}[/img]", true);
|
_chatBot.SendChatMessage($"[img]{settings[BuiltIn.Keys.BotChrisDjLiveImage].Value}[/img]", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -832,16 +832,6 @@ public static class BuiltIn
|
|||||||
ValueType = SettingValueType.Text
|
ValueType = SettingValueType.Text
|
||||||
},
|
},
|
||||||
new BuiltInSettingsModel
|
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
|
|
||||||
},
|
|
||||||
new BuiltInSettingsModel
|
|
||||||
{
|
{
|
||||||
Key = Keys.TwitchCommercialRestreamShillMessage,
|
Key = Keys.TwitchCommercialRestreamShillMessage,
|
||||||
Regex = ".+",
|
Regex = ".+",
|
||||||
@@ -850,6 +840,16 @@ public static class BuiltIn
|
|||||||
IsSecret = false,
|
IsSecret = false,
|
||||||
CacheDuration = TimeSpan.FromHours(1),
|
CacheDuration = TimeSpan.FromHours(1),
|
||||||
ValueType = SettingValueType.Text
|
ValueType = SettingValueType.Text
|
||||||
|
},
|
||||||
|
new BuiltInSettingsModel
|
||||||
|
{
|
||||||
|
Key = Keys.BotChrisDjLiveImage,
|
||||||
|
Regex = ".+",
|
||||||
|
Description = "Image that the bot will send when ChrisDJ goes live",
|
||||||
|
Default = "https://kiwifarms.st/attachments/nonce-live-png.7015533/",
|
||||||
|
IsSecret = false,
|
||||||
|
CacheDuration = TimeSpan.FromHours(1),
|
||||||
|
ValueType = SettingValueType.Text
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -917,7 +917,7 @@ public static class BuiltIn
|
|||||||
public static string BotImageAcceptableKeys = "Bot.Image.AcceptableKeys";
|
public static string BotImageAcceptableKeys = "Bot.Image.AcceptableKeys";
|
||||||
public static string BotToyStoryImage = "Bot.ToyStoryImage";
|
public static string BotToyStoryImage = "Bot.ToyStoryImage";
|
||||||
public static string BotImageRandomSliceDivideBy = "Bot.Image.RandomSliceDivideBy";
|
public static string BotImageRandomSliceDivideBy = "Bot.Image.RandomSliceDivideBy";
|
||||||
public static string BotToyStoryImageOnChrisDjLive = "Bot.ToyStoryImageOnChrisDjLive";
|
|
||||||
public static string TwitchCommercialRestreamShillMessage = "Twitch.CommercialRestreamShillMessage";
|
public static string TwitchCommercialRestreamShillMessage = "Twitch.CommercialRestreamShillMessage";
|
||||||
|
public static string BotChrisDjLiveImage = "Bot.ChrisDjLiveImage";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user