• Fixed word wrapping

• Fixed YouTube emojis
This commit is contained in:
nutty
2026-02-27 03:17:27 +11:00
parent 8031ae322a
commit b3375f4d5e
4 changed files with 13 additions and 2 deletions
+5
View File
@@ -272,6 +272,11 @@ function RandomHex(str) {
// Used to construct a message from "parts" variable commonly found in Streamer.bot chat messages
function ConstructMessageFromParts(parts) {
return parts.map(part => {
if (part.emoji)
return ` <img src="${part.image}" alt="${part.text}" title="${part.text}" class="emote"> `;
if (!part.type)
return part.text;
switch (part.type)
{
case "text":