mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
Fixed bot only returning one stream for selfpromo
This commit is contained in:
@@ -92,11 +92,7 @@ public class SelfPromoCommand : ICommand
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var streamList = string.Empty;
|
var streamList = userChannels.Aggregate(string.Empty, (current, stream) => current + $"[br]- https://kick.com/{stream.ChannelSlug}");
|
||||||
foreach (var stream in userChannels)
|
|
||||||
{
|
|
||||||
streamList = $"[br]- https://kick.com/{stream.ChannelSlug}";
|
|
||||||
}
|
|
||||||
|
|
||||||
await botInstance.SendChatMessageAsync(
|
await botInstance.SendChatMessageAsync(
|
||||||
$"@{user.KfUsername} is a weirdo who streams a lot. His channels are at: {streamList}", true);
|
$"@{user.KfUsername} is a weirdo who streams a lot. His channels are at: {streamList}", true);
|
||||||
|
|||||||
Reference in New Issue
Block a user