From 2adad83cca3f0e90f4c7829a07d8a78d4ca9cbc4 Mon Sep 17 00:00:00 2001 From: qwerinope Date: Sat, 31 May 2025 19:42:08 +0200 Subject: [PATCH] using the chattername overwrites the info regarding chatterID if the chatter changes name --- bot/events/message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/events/message.ts b/bot/events/message.ts index 76465bc..a1f1667 100644 --- a/bot/events/message.ts +++ b/bot/events/message.ts @@ -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