From 06c64778ce31c9b8cf2b0646a06eeb70cebb6884 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:10:24 +0800 Subject: [PATCH] Trim \r that was being passed through from Twitch chat --- KfChatDotNetBot/ChatBot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KfChatDotNetBot/ChatBot.cs b/KfChatDotNetBot/ChatBot.cs index ad6a9e5..e3c1d02 100644 --- a/KfChatDotNetBot/ChatBot.cs +++ b/KfChatDotNetBot/ChatBot.cs @@ -391,7 +391,7 @@ public class ChatBot } // Not caching this value as it won't harm it to have to look this up in even the worst spergout sesh var twitchIcon = Helpers.GetValue(BuiltIn.Keys.TwitchIcon).Result.Value; - SendChatMessage($"[img]{twitchIcon}[/img] {nick}: {message}", true); + SendChatMessage($"[img]{twitchIcon}[/img] {nick}: {message.TrimEnd('\r')}", true); } private void DiscordOnPresenceUpdated(object sender, DiscordPresenceUpdateModel presence)