Trim \r that was being passed through from Twitch chat

This commit is contained in:
barelyprofessional
2024-08-13 17:10:24 +08:00
parent eef56d3f6b
commit 06c64778ce

View File

@@ -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 // 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; 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) private void DiscordOnPresenceUpdated(object sender, DiscordPresenceUpdateModel presence)