Fixed error with Kick replies

This commit is contained in:
nutty
2026-03-26 04:32:44 +11:00
parent 69600ca74a
commit 3613f1fa7f
3 changed files with 28 additions and 2 deletions
+9
View File
@@ -159,6 +159,15 @@ async function GetPronouns(platform, username) {
}
}
function RenderKickEmotes(message) {
const emoteRegex = /\[emote:(\d+):([^\]]+)\]/g;
return message.replace(emoteRegex, (_, id, name) => {
const imgUrl = `https://files.kick.com/emotes/${id}/fullsize`;
return `<img src="${imgUrl}" alt="${name}" title="${name}" class="emote" />`;
});
}
function GetCurrentTimeFormatted() {
const now = new Date();
let hours = now.getHours();