{"id":40419674,"url":"https://github.com/oyxning/astrtbot_plugin_echo_avatar","last_synced_at":"2026-01-20T15:06:22.133Z","repository":{"id":304165002,"uuid":"1017954013","full_name":"oyxning/astrtbot_plugin_echo_avatar","owner":"oyxning","description":"仿言分身 (Echo Avatar) 是一个为 AstrBot 设计的独特插件，它能够学习并模仿指定用户的语言风格，并利用强大的大型语言模型（LLM）生成具有该用户特色的 Prompt。","archived":false,"fork":false,"pushed_at":"2025-09-09T03:17:42.000Z","size":81,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-09T06:18:14.537Z","etag":null,"topics":["pyton"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oyxning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-11T11:09:02.000Z","updated_at":"2025-09-09T03:17:22.000Z","dependencies_parsed_at":"2025-07-11T14:07:56.932Z","dependency_job_id":"5b310971-5de1-41b2-b9c0-7696f5d4d0f2","html_url":"https://github.com/oyxning/astrtbot_plugin_echo_avatar","commit_stats":null,"previous_names":["oyxning/astrtbot_plugin_echo_avatar"],"tags_count":5,"template":false,"template_full_name":"Soulter/helloworld","purl":"pkg:github/oyxning/astrtbot_plugin_echo_avatar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyxning%2Fastrtbot_plugin_echo_avatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyxning%2Fastrtbot_plugin_echo_avatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyxning%2Fastrtbot_plugin_echo_avatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyxning%2Fastrtbot_plugin_echo_avatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oyxning","download_url":"https://codeload.github.com/oyxning/astrtbot_plugin_echo_avatar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyxning%2Fastrtbot_plugin_echo_avatar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T14:45:23.139Z","status":"ssl_error","status_checked_at":"2026-01-20T14:44:16.929Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pyton"],"created_at":"2026-01-20T15:06:21.579Z","updated_at":"2026-01-20T15:06:22.127Z","avatar_url":"https://github.com/oyxning.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **仿言分身 (Echo Avatar) v1.0.1**\n\n**仿言分身 (Echo Avatar)** 是一个为 [AstrBot](https://github.com/AstrBotDevs/AstrBot) 设计的、强大的数字人格构建与模仿插件。它不再仅仅是模仿，而是通过一个多维度的数据模型，让您可以为指定用户构建一个立体、丰满的“数字人格”，并让 LLM 基于此进行高质量的风格化创作。\n\n## **核心理念：从模仿到构建**\n\nV1.0.1版本实现了一个核心的转变：从单纯的**语言风格模仿**，升级为多维度的**数字人格构建**。我们认识到，一个人的特点不仅仅体现在说话方式上，还包括其核心设定、他人印象等。本插件旨在整合这些信息，创造出更可信、更立体的数字分身。\n\n## **✨ 功能特性**\n\n* **多维人格构建**:  \n  * **用户资料**: 记录昵称等核心信息。  \n  * **管理员批注**: 由管理员添加的、具有最高优先级的核心设定，用于修正和补充关键信息。  \n  * **第三方记忆**: 开放给所有用户的功能，可以为目标用户添加印象、趣闻等，实现众包式的信息补充。  \n  * **聊天记录**: 插件自动记录用户的语言风格作为基础。  \n* **权重化智能分析**: 在生成 Prompt 时，LLM 会严格按照“管理员批注 \\\u003e 用户资料 \\\u003e 聊天记录 \\\u003e 第三方记忆”的权重顺序进行分析，确保生成内容的准确性和趣味性。  \n* **可视化数据预览**: 新增 数据预览 指令，可将用户的所有维度数据渲染成一张精美、直观的 HTML 报告图片，方便管理员全面掌握人格数据。  \n* **精细化数据管理**:  \n  * **独立存储**: 每个用户的多维度数据都存储在独立的数据库文件中，安全隔离。  \n  * **指令化管理**: 提供丰富的指令，用于完善资料、添加批注/记忆、查询状态和一键清理数据。\n\n## **⚙️ 数据权重与工作流**\n\n为了让LLM能够准确地构建人格，插件对不同来源的数据设定了优先级：\n\n**管理员批注 \\\u003e 用户资料 \\\u003e 聊天记录 \\\u003e 第三方记忆**\n\n* **管理员批注**: 拥有绝对的最高优先级。这是不容置疑的“事实”，用于修正LLM可能从聊天记录中产生的错误认知。例如，批注可以明确指出某个ID是人名而非地名。  \n* **用户资料**: 权重很高，是人格的基本信息。  \n* **聊天记录**: 是学习语言风格和用语习惯的主要来源。  \n* **第三方记忆**: 作为辅助参考，用于丰富细节。当它与更高权重的数据冲突时，应被忽略。\n\n## **🛠️ 安装方式**\n\n本插件已在 AstrBot 官方插件市场发布。\n\n您只需进入 AstrBot 的 WebUI，在 **“插件”** \\-\\\u003e **“插件市场”** 中搜索 **“Echo Avatar”** 或 **“仿言分身”**，点击安装即可。\n\n## **📝 指令指南**\n\n### **一、 管理员指令**\n\n以下指令仅供全局管理员使用。\n\n#### **1\\. 首次配置**\n\n* **功能**: 设置需要监控和构建人格的用户列表。  \n* **操作**: 进入 AstrBot WebUI \\-\\\u003e **插件** \\-\\\u003e **仿言分身 (Echo Avatar)** \\-\\\u003e **配置** \\-\\\u003e 在 target\\_users 字段中添加用户ID。\n\n#### **2\\. 人格数据录入**\n\n* **完善用户资料**:  \n  * **用途**: 设置用户的核心信息，目前支持“昵称”。  \n  * **指令**: /echo\\_avatar 完善资料 \\\u003c用户ID\\\u003e 昵称 \\\u003c昵称内容\\\u003e  \n  * **示例**: /echo\\_avatar 完善资料 12345678 昵称 星穹列车长  \n* **添加管理员批注 (高权重)**:  \n  * **用途**: 添加关于用户的核心设定或需要修正的关键信息。  \n  * **指令**: /echo\\_avatar 添加批注 \\\u003c用户ID\\\u003e \\\u003c批注内容\\\u003e  \n  * **示例**: /echo\\_avatar 添加批注 12345678 他的搭档“三月七”不是指月份，而是一个人的名字。\n\n#### **3\\. 数据管理与预览**\n\n* **查询状态**:  \n  * **用途**: 查看当前正在监控的用户列表。  \n  * **指令**: /echo\\_avatar 状态  \n* **数据预览**:  \n  * **用途**: 生成一张包含该用户所有信息的图片报告。  \n  * **指令**: /echo\\_avatar 数据预览 \\\u003c用户ID\\\u003e  \n  * **示例**: /echo\\_avatar 数据预览 12345678  \n* **清理数据**:  \n  * **用途**: 永久删除某个用户的所有相关数据。  \n  * **指令**: /echo\\_avatar 清理数据 \\\u003c用户ID\\\u003e  \n  * **示例**: /echo\\_avatar 清理数据 12345678  \n  * **⚠️ 警告：此操作不可逆，请谨慎使用！**\n\n#### **4\\. 核心功能**\n\n* **生成Prompt**:  \n  * **用途**: 基于所有维度的信息，生成最终的模仿Prompt。  \n  * **指令**: /echo\\_avatar 生成 \\\u003c用户ID\\\u003e  \n  * **示例**: /echo\\_avatar 生成 12345678\n\n### **二、 公共指令**\n\n以下指令所有用户均可使用。\n\n#### **1\\. 添加第三方记忆 (低权重)**\n\n* **用途**: 为被监控的用户添加你的印象或相关趣事，丰富其人格细节。  \n* **指令**: /echo\\_avatar 添加记忆 \\\u003c用户ID\\\u003e \\\u003c记忆内容\\\u003e  \n* **示例**: /echo\\_avatar 添加记忆 12345678 我记得他上次在群里分享了一个很有趣的冷笑话。\n\n## **⚠️ 注意事项**\n\n* 本插件会将指定用户的聊天记录以纯文本形式存储在本地独立的数据库文件中，路径为 data/astrtbot\\_plugin\\_echo\\_avatar/user\\_data/\\\u003c用户ID\\\u003e.db。请确保 AstrBot 运行环境的磁盘安全。  \n* 生成 Prompt 的质量高度依赖于所记录的数据量和多样性。数据越丰富，模仿得越像。  \n* 请在遵守相关法律法规和平台用户协议的前提下使用本插件，尊重用户隐私。\n\n## **🧑‍💻 作者**\n\n* **LumineStory**\n\n## **🔗 仓库地址**\n\n[github.com/oyxning/astrtbot_plugin_echo_avatar](https://github.com/oyxning/astrtbot_plugin_echo_avatar)\n\n## 💡 另：插件反馈群\n\n由于作者持续的那么一个懒，平常不会及时的看issues，所以开了个QQ反馈群方便用户及时的拷打作者。\n点击链接加入群聊【Astrbot Plugin 猫娘乐园】：https://qm.qq.com/q/dBWQXCpwnm\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foyxning%2Fastrtbot_plugin_echo_avatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foyxning%2Fastrtbot_plugin_echo_avatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foyxning%2Fastrtbot_plugin_echo_avatar/lists"}