mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
• Fixed word wrapping
• Fixed YouTube emojis
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user