using the chattername overwrites the info regarding chatterID if the chatter changes name

This commit is contained in:
2025-05-31 19:42:08 +02:00
parent b8fa39418d
commit 2adad83cca

View File

@@ -10,7 +10,7 @@ eventSub.onChannelChatMessage(streamerId, streamerId, async msg => {
if (!singleUserMode && msg.chatterId === chatterId) return
// Get user from cache or place user in cache
const user = await User.initUserId(msg.chatterId);
const user = await User.initUsername(msg.chatterName);
// Manage vulnerable chatters
if (![chatterId, streamerId].includes(msg.chatterId)) {// Don't add the chatter or streamer to the vulnerable chatters