From 2ec9cad2f46110f16906acb99eebd8f910069a09 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Tue, 8 Jul 2025 11:42:04 -0500 Subject: [PATCH] Fixed bot only returning one stream for selfpromo --- KfChatDotNetBot/Commands/RestreamCommands.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/KfChatDotNetBot/Commands/RestreamCommands.cs b/KfChatDotNetBot/Commands/RestreamCommands.cs index 0080e7d..28bd98e 100644 --- a/KfChatDotNetBot/Commands/RestreamCommands.cs +++ b/KfChatDotNetBot/Commands/RestreamCommands.cs @@ -92,11 +92,7 @@ public class SelfPromoCommand : ICommand return; } - var streamList = string.Empty; - foreach (var stream in userChannels) - { - streamList = $"[br]- https://kick.com/{stream.ChannelSlug}"; - } + var streamList = userChannels.Aggregate(string.Empty, (current, stream) => current + $"[br]- https://kick.com/{stream.ChannelSlug}"); await botInstance.SendChatMessageAsync( $"@{user.KfUsername} is a weirdo who streams a lot. His channels are at: {streamList}", true);