emotion-state-portrait

Emotion, energy and per-user portrait engine for AI characters: a 303-word emotion library scored in two steps (pick one of 6 categories first, then choose within it), novelty reward and same-word cooldown for diversity, a spirit meter with easter-egg state transitions (excited / suppressed / angry), and per-user portraits. File mode works with any AI; the optional OneBot mode reads friend message history from a OneBot 11 endpoint such as NapCat. Requires your own OpenAI-compatible LLM endpoint and API key (EMOTION_LLM_KEY or emotion/config.json).

Overview

Emotion, energy and per-user portrait engine for AI characters: a 303-word emotion library scored in two steps (pick one of 6 categories first, then choose within it), novelty reward and same-word cooldown for diversity, a spirit meter with easter-egg state transitions (excited / suppressed / angry), and per-user portraits. File mode works with any AI; the optional OneBot mode reads friend message history from a OneBot 11 endpoint such as NapCat. Requires your own OpenAI-compatible LLM endpoint and API key (EMOTION_LLM_KEY or emotion/config.json).

Installation

Install from GitHub

dsh plugin --profile web add github:333YYY-BIT/emotion-state-portrait

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.