mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Fixed bot only returning one stream for selfpromo
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user