Logs the last bot message and shows an emotion-based avatar. Completly customizable.
This Tampermonkey userscript adds dynamic, emotion-based avatars to JanitorAI chats. It analyzes the bot's last message and displays a character avatar that matches the detected emotion, making conversations more expressive and visually engaging.
YOUR_OWN_API_KEY with your Gemini API key.gemini-2.0-flash).characterEmotionAvatars object.characterEmotionAvatars object, using the same emotion number mapping.const characterEmotionAvatars = {
Ashley: { ... },
Bob: {
1: "https://example.com/bob-happy.png", // Admiration
2: "https://example.com/bob-amused.png", // Amusement
// ... add more emotions
},
// Add more characters here
};
- Make sure the emotion numbers and descriptions in the Gemini prompt (Section 5) match your avatar setup.For questions or help, you can contact me on discord (@xzeph__)