mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-02-25 08:57:51 +08:00
25 lines
1.6 KiB
Markdown
25 lines
1.6 KiB
Markdown
用于让Bot扮演指定角色的聊天插件,触发方法如下:
|
||
- `$角色/$role help/帮助` - 打印目前支持的角色列表。
|
||
- `$角色/$role <角色名>` - 让AI扮演该角色,角色名支持模糊匹配。
|
||
- `$停止扮演` - 停止角色扮演。
|
||
|
||
添加自定义角色请在`roles/roles.json`中添加。
|
||
(大部分prompt来自https://github.com/rockbenben/ChatGPT-Shortcut/blob/main/src/data/users.tsx)
|
||
|
||
以下为例子,
|
||
- `title`是角色名。
|
||
- `description`是使用`$role`触发的英语prompt。
|
||
- `descn`是使用`$角色`触发的中文prompt。
|
||
- `wrapper`用于包装你的消息,可以起到强调的作用。
|
||
- `remark`简短的描述该角色,在打印帮助时显示。
|
||
|
||
```json
|
||
{
|
||
"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": "最常使用的角色,用于优化文本的语法、清晰度和简洁度,提高可读性。"
|
||
},
|
||
```
|