From 0f2f5d60c9a9c4cd2bcdfd4ed5df7591e812dce0 Mon Sep 17 00:00:00 2001 From: somebody Date: Fri, 18 Nov 2022 18:21:11 -0600 Subject: [PATCH] Change pfp as user types --- static/koboldai.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/koboldai.js b/static/koboldai.js index c3520c2d..04da601d 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -6006,6 +6006,10 @@ function addMessage(author, content, actionId, afterMsgEl=null, time=null) { }); } + messageAuthor.addEventListener("keyup", function() { + profilePicture.src = getChatPfp(messageAuthor.innerText); + }) + addAfterButton.addEventListener("click", function() { addMessage(null, null, actionId, message); });