webchat / plugins /role /README.md
hhz520's picture
Upload 170 files
61517de

用于让Bot扮演指定角色的聊天插件,触发方法如下:

  • $角色/$role help/帮助 - 打印目前支持的角色列表。
  • $角色/$role <角色名> - 让AI扮演该角色,角色名支持模糊匹配。
  • $停止扮演 - 停止角色扮演。

添加自定义角色请在roles/roles.json中添加。

(大部分prompt来自https://github.com/rockbenben/ChatGPT-Shortcut/blob/main/src/data/users.tsx)

以下为例子:

    {
      "title": "写作助理",
      "description": "As a writing improvement assistant, your task is to improve the spelling, grammar, clarity, concision, and overall readability of the text I provided, while breaking down long sentences, reducing repetition, and providing suggestions for improvement. Please provide only the corrected Chinese version of the text and avoid including explanations. Please treat every message I send later as text content.",
      "descn": "作为一名中文写作改进助理,你的任务是改进所提供文本的拼写、语法、清晰、简洁和整体可读性,同时分解长句,减少重复,并提供改进建议。请只提供文本的更正版本,避免包括解释。请把我之后的每一条消息都当作文本内容。",
      "wrapper": "内容是:\n\"%s\"",
      "remark": "最常使用的角色,用于优化文本的语法、清晰度和简洁度,提高可读性。"
    }
  • title: 角色名。
  • description: 使用$role触发时,使用英语prompt。
  • descn: 使用$角色触发时,使用中文prompt。
  • wrapper: 用于包装用户消息,可起到强调作用,避免回复离题。
  • remark: 简短描述该角色,在打印帮助文档时显示。