Update module.js

This commit is contained in:
Rodrigo Emanuel
2025-06-18 15:32:21 -03:00
committed by GitHub
parent 46c76aac5a
commit 3c95ac2361

View File

@@ -100,7 +100,7 @@ async function twitchChatMessage(data) {
message: { message: {
username: userID, username: userID,
color, color,
displayName: userName, displayName: fullUserName,
message : text, message : text,
firstMessage, firstMessage,
isReply, isReply,
@@ -142,18 +142,18 @@ async function twitchChatMessage(data) {
} }
} }
let fullUserName = userName; let userName = fullUserName;
let userPronouns = await getUserPronouns('twitch', data.message.username);
if (showTwitchPronouns == true) { if (showTwitchPronouns == true) {
fullUserName = userName + userPronouns; let userPronouns = await getUserPronouns('twitch', data.message.username);
userName = userPronouns + fullUserName;
} }
const messageData = { const messageData = {
classes: classes.join(' '), classes: classes.join(' '),
avatar, avatar,
badges, badges,
fullUserName, userName,
color, color,
message, message,
shared: sharedChat, shared: sharedChat,
@@ -637,4 +637,4 @@ async function getUserPronouns(platform, username) {
return pronoun; return pronoun;
} }
} }