Fixed bot only returning one stream for selfpromo

This commit is contained in:
barelyprofessional
2025-07-08 11:42:04 -05:00
parent 451b7e625e
commit 2ec9cad2f4

View File

@@ -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);