No more deadnaming

This commit is contained in:
barelyprofessional
2025-02-06 09:38:48 +08:00
parent f7bc5b5026
commit a292a98048
+5 -4
View File
@@ -561,15 +561,16 @@ public class BotServices
private void OnTwitchStreamStateUpdated(object sender, int channelId, bool isLive) private void OnTwitchStreamStateUpdated(object sender, int channelId, bool isLive)
{ {
_logger.Info($"BossmanJack stream event came in. isLive => {isLive}"); _logger.Info($"BossmanJack stream event came in. isLive => {isLive}");
var settings = Helpers.GetMultipleValues([BuiltIn.Keys.RestreamUrl, BuiltIn.Keys.TwitchBossmanJackUsername]).Result;
if (isLive) if (isLive)
{ {
var restream = Helpers.GetValue(BuiltIn.Keys.RestreamUrl).Result.Value; _chatBot.SendChatMessage($"{settings[BuiltIn.Keys.TwitchBossmanJackUsername].Value} just went live on Twitch! https://www.twitch.tv/{settings[BuiltIn.Keys.TwitchBossmanJackUsername].Value}\r\n" +
_chatBot.SendChatMessage("BossmanJack just went live on Twitch! https://www.twitch.tv/thebossmanjack\r\n" + settings[BuiltIn.Keys.RestreamUrl]);
$"Ad-free re-stream at {restream} courtesy of @Kees H");
IsBmjLive = true; IsBmjLive = true;
return; return;
} }
_chatBot.SendChatMessage("BossmanJack is no longer live! :lossmanjack:"); _chatBot.SendChatMessage($"{settings[BuiltIn.Keys.TwitchBossmanJackUsername].Value} is no longer live! :lossmanjack:");
IsBmjLive = false; IsBmjLive = false;
} }