nonebot-plugin-copywrite 0.2.2__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nonebot_plugin_copywrite-0.3.0/.github/workflows/pypi-publish.yml +36 -0
- nonebot_plugin_copywrite-0.3.0/.gitignore +176 -0
- nonebot_plugin_copywrite-0.3.0/PKG-INFO +159 -0
- nonebot_plugin_copywrite-0.3.0/README.md +145 -0
- {nonebot_plugin_copywrite-0.2.2 → nonebot_plugin_copywrite-0.3.0}/nonebot_plugin_copywrite/__init__.py +121 -234
- {nonebot_plugin_copywrite-0.2.2 → nonebot_plugin_copywrite-0.3.0}/nonebot_plugin_copywrite/chat.py +9 -17
- {nonebot_plugin_copywrite-0.2.2 → nonebot_plugin_copywrite-0.3.0}/nonebot_plugin_copywrite/copywrite/__init__.py +4 -4
- {nonebot_plugin_copywrite-0.2.2 → nonebot_plugin_copywrite-0.3.0}/nonebot_plugin_copywrite/copywrite/default.long.yaml +43 -11
- nonebot_plugin_copywrite-0.3.0/nonebot_plugin_copywrite/copywrite/default.short.yaml +80 -0
- nonebot_plugin_copywrite-0.3.0/nonebot_plugin_copywrite/copywrite/fran.long.yaml +30 -0
- nonebot_plugin_copywrite-0.3.0/nonebot_plugin_copywrite/copywrite/fran.short.yaml +32 -0
- {nonebot_plugin_copywrite-0.2.2 → nonebot_plugin_copywrite-0.3.0}/nonebot_plugin_copywrite/copywrite/life.checkpoint.long.yaml +22 -3
- nonebot_plugin_copywrite-0.3.0/nonebot_plugin_copywrite/copywrite/sujoke.short.yaml +8 -0
- nonebot_plugin_copywrite-0.3.0/pyproject.toml +19 -0
- nonebot_plugin_copywrite-0.3.0/uv.lock +786 -0
- nonebot_plugin_copywrite-0.2.2/PKG-INFO +0 -57
- nonebot_plugin_copywrite-0.2.2/README.md +0 -36
- nonebot_plugin_copywrite-0.2.2/nonebot_plugin_copywrite/copywrite/default.delete.yaml +0 -13
- nonebot_plugin_copywrite-0.2.2/nonebot_plugin_copywrite/copywrite/default.short.yaml +0 -43
- nonebot_plugin_copywrite-0.2.2/pyproject.toml +0 -20
- {nonebot_plugin_copywrite-0.2.2 → nonebot_plugin_copywrite-0.3.0}/LICENSE +0 -0
- {nonebot_plugin_copywrite-0.2.2 → nonebot_plugin_copywrite-0.3.0}/nonebot_plugin_copywrite/config.py +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- '*'
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
pypi-publish:
|
|
11
|
+
name: Upload release to PyPI
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@master
|
|
15
|
+
- name: Set up Python
|
|
16
|
+
uses: actions/setup-python@v1
|
|
17
|
+
with:
|
|
18
|
+
python-version: "3.x"
|
|
19
|
+
- name: Install pypa/build
|
|
20
|
+
run: >-
|
|
21
|
+
python -m
|
|
22
|
+
pip install
|
|
23
|
+
build
|
|
24
|
+
--user
|
|
25
|
+
- name: Build a binary wheel and a source tarball
|
|
26
|
+
run: >-
|
|
27
|
+
python -m
|
|
28
|
+
build
|
|
29
|
+
--sdist
|
|
30
|
+
--wheel
|
|
31
|
+
--outdir dist/
|
|
32
|
+
.
|
|
33
|
+
- name: Publish distribution to PyPI
|
|
34
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
35
|
+
with:
|
|
36
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
|
|
104
|
+
poetry.toml
|
|
105
|
+
|
|
106
|
+
# pdm
|
|
107
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
108
|
+
#pdm.lock
|
|
109
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
110
|
+
# in version control.
|
|
111
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
112
|
+
.pdm-python
|
|
113
|
+
|
|
114
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
115
|
+
__pypackages__/
|
|
116
|
+
|
|
117
|
+
# Celery stuff
|
|
118
|
+
celerybeat-schedule
|
|
119
|
+
celerybeat.pid
|
|
120
|
+
|
|
121
|
+
# SageMath parsed files
|
|
122
|
+
*.sage.py
|
|
123
|
+
|
|
124
|
+
# Environments
|
|
125
|
+
.env
|
|
126
|
+
.venv
|
|
127
|
+
env/
|
|
128
|
+
venv/
|
|
129
|
+
ENV/
|
|
130
|
+
env.bak/
|
|
131
|
+
venv.bak/
|
|
132
|
+
|
|
133
|
+
# Spyder project settings
|
|
134
|
+
.spyderproject
|
|
135
|
+
.spyproject
|
|
136
|
+
|
|
137
|
+
# Rope project settings
|
|
138
|
+
.ropeproject
|
|
139
|
+
|
|
140
|
+
# mkdocs documentation
|
|
141
|
+
/site
|
|
142
|
+
|
|
143
|
+
# mypy
|
|
144
|
+
.mypy_cache/
|
|
145
|
+
.dmypy.json
|
|
146
|
+
dmypy.json
|
|
147
|
+
|
|
148
|
+
# Pyre type checker
|
|
149
|
+
.pyre/
|
|
150
|
+
|
|
151
|
+
# pytype static type analyzer
|
|
152
|
+
.pytype/
|
|
153
|
+
|
|
154
|
+
# Cython debug symbols
|
|
155
|
+
cython_debug/
|
|
156
|
+
|
|
157
|
+
# ruff
|
|
158
|
+
.ruff_cache/
|
|
159
|
+
|
|
160
|
+
# LSP config files
|
|
161
|
+
pyrightconfig.json
|
|
162
|
+
|
|
163
|
+
# PyCharm
|
|
164
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
165
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
166
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
167
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
168
|
+
#.idea/
|
|
169
|
+
|
|
170
|
+
# VisualStudioCode
|
|
171
|
+
.vscode/*
|
|
172
|
+
!.vscode/settings.json
|
|
173
|
+
!.vscode/tasks.json
|
|
174
|
+
!.vscode/launch.json
|
|
175
|
+
!.vscode/extensions.json
|
|
176
|
+
!.vscode/*.code-snippets
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nonebot-plugin-copywrite
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Author-email: Yan <1964649083@qq.com>
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: <4.0,>=3.11
|
|
8
|
+
Requires-Dist: cairosvg<3,>=2.7.1
|
|
9
|
+
Requires-Dist: nonebot-adapter-onebot<3,>=2.4.6
|
|
10
|
+
Requires-Dist: nonebot2<3,>=2.4.0
|
|
11
|
+
Requires-Dist: openai<2,>=1.54.3
|
|
12
|
+
Requires-Dist: pyyaml<7,>=6.0.1
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
<div align="center">
|
|
16
|
+
<a href="https://v2.nonebot.dev/store"><img src="https://raw.githubusercontent.com/tkgs0/nbpt/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
|
|
17
|
+
<br>
|
|
18
|
+
<p><img src="https://raw.githubusercontent.com/tkgs0/nbpt/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div align="center">
|
|
22
|
+
|
|
23
|
+
# Nonebot 2 定型文生成器
|
|
24
|
+
|
|
25
|
+
_✨ NoneBot 定型文生成器 ✨_
|
|
26
|
+
|
|
27
|
+
<a href="./LICENSE">
|
|
28
|
+
<img src="https://img.shields.io/github/license/Yan-Zero/nonebot-plugin-copywrite.svg" alt="license">
|
|
29
|
+
</a>
|
|
30
|
+
<a href="https://pypi.python.org/pypi/nonebot-plugin-copywrite">
|
|
31
|
+
<img src="https://img.shields.io/pypi/v/nonebot-plugin-copywrite.svg" alt="pypi">
|
|
32
|
+
</a>
|
|
33
|
+
<a href="https://www.python.org">
|
|
34
|
+
<img src="https://img.shields.io/badge/python-3.11+-blue.svg" alt="python">
|
|
35
|
+
</a>
|
|
36
|
+
<a href="https://nonebot.dev">
|
|
37
|
+
<img src="https://img.shields.io/badge/nonebot-2.4.0+-red.svg" alt="nonebot">
|
|
38
|
+
</a>
|
|
39
|
+
<a href="https://onebot.adapters.nonebot.dev">
|
|
40
|
+
<img src="https://img.shields.io/badge/OneBot-11-black?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF////29vbr6+vAAAAk1hCcwAAAAR0Uk5T////AEAqqfQAAAKcSURBVHja7NrbctswDATQXfD//zlpO7FlmwAWIOnOtNaTM5JwDMa8E+PNFz7g3waJ24fviyDPgfhz8fHP39cBcBL9KoJbQUxjA2iYqHL3FAnvzhL4GtVNUcoSZe6eSHizBcK5LL7dBr2AUZlev1ARRHCljzRALIEog6H3U6bCIyqIZdAT0eBuJYaGiJaHSjmkYIZd+qSGWAQnIaz2OArVnX6vrItQvbhZJtVGB5qX9wKqCMkb9W7aexfCO/rwQRBzsDIsYx4AOz0nhAtWu7bqkEQBO0Pr+Ftjt5fFCUEbm0Sbgdu8WSgJ5NgH2iu46R/o1UcBXJsFusWF/QUaz3RwJMEgngfaGGdSxJkE/Yg4lOBryBiMwvAhZrVMUUvwqU7F05b5WLaUIN4M4hRocQQRnEedgsn7TZB3UCpRrIJwQfqvGwsg18EnI2uSVNC8t+0QmMXogvbPg/xk+Mnw/6kW/rraUlvqgmFreAA09xW5t0AFlHrQZ3CsgvZm0FbHNKyBmheBKIF2cCA8A600aHPmFtRB1XvMsJAiza7LpPog0UJwccKdzw8rdf8MyN2ePYF896LC5hTzdZqxb6VNXInaupARLDNBWgI8spq4T0Qb5H4vWfPmHo8OyB1ito+AysNNz0oglj1U955sjUN9d41LnrX2D/u7eRwxyOaOpfyevCWbTgDEoilsOnu7zsKhjRCsnD/QzhdkYLBLXjiK4f3UWmcx2M7PO21CKVTH84638NTplt6JIQH0ZwCNuiWAfvuLhdrcOYPVO9eW3A67l7hZtgaY9GZo9AFc6cryjoeFBIWeU+npnk/nLE0OxCHL1eQsc1IciehjpJv5mqCsjeopaH6r15/MrxNnVhu7tmcslay2gO2Z1QfcfX0JMACG41/u0RrI9QAAAABJRU5ErkJggg==" alt="onebot">
|
|
41
|
+
</a>
|
|
42
|
+
<a href="https://pypi.python.org/pypi/nonebot-plugin-copywrite" rel="nofollow">
|
|
43
|
+
<img alt="pypi download" src="https://img.shields.io/pypi/dm/nonebot-plugin-copywrite" style="max-width: 100%;">
|
|
44
|
+
</a>
|
|
45
|
+
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
## 📖 介绍
|
|
49
|
+
|
|
50
|
+
基于 LLM 的定型文生成器
|
|
51
|
+
|
|
52
|
+
## ⚙️ 数据配置
|
|
53
|
+
|
|
54
|
+
### 定型文
|
|
55
|
+
|
|
56
|
+
存放于 ./data/copywrite/ 下面
|
|
57
|
+
|
|
58
|
+
#### 例子
|
|
59
|
+
|
|
60
|
+
```yaml
|
|
61
|
+
__category__: 114514
|
|
62
|
+
|
|
63
|
+
鸣潮:
|
|
64
|
+
examples:
|
|
65
|
+
- 圆桌是这样的,亚瑟王只需要使用圣剑就行了,而圆桌骑士们需要考虑的就多了,什么时候和贵妇幽会,什么时候挑起内战,都需要深思熟虑
|
|
66
|
+
- 儿童节是这样的,大哥哥只需要在家等着被抓就行了,而小萝莉要考虑的事情就很多了,什么时候喊杂鱼杂鱼,什么时候掀裙子露内裤,什么时候拉响警报器,都需要经过深思熟虑
|
|
67
|
+
- 企业家是这样的,员工只需要完成工作任务就行了,而老板要考虑的事情就很多了,什么时候拖欠工资,什么时候增加工作时间,员工绩效怎么压,都需要深思熟虑
|
|
68
|
+
addition: "你回复的文案应该是辛辣讽刺的,例如老板考虑如何拖欠工资,学生考虑低分怎么辩解,游戏玩家考虑如何开挂。"
|
|
69
|
+
model: grok-beta
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
#### 解释
|
|
73
|
+
|
|
74
|
+
- \_\_category\_\_: 定型文的分类
|
|
75
|
+
- examples: 例子
|
|
76
|
+
- addition: 附加内容,用以约束 LLM 可能的输出
|
|
77
|
+
- model: 使用的模型
|
|
78
|
+
|
|
79
|
+
## 💬 指令
|
|
80
|
+
|
|
81
|
+
### 文案
|
|
82
|
+
|
|
83
|
+
> /文案 [Type] (Keywords)* [Topic]
|
|
84
|
+
|
|
85
|
+
生产电子垃圾。
|
|
86
|
+
|
|
87
|
+
| 参数 | 说明 |
|
|
88
|
+
| ---- | ---- |
|
|
89
|
+
| Type | 文案名字 |
|
|
90
|
+
| Topic | 文案的主题 |
|
|
91
|
+
| Keywords | 文案的关键词 |
|
|
92
|
+
|
|
93
|
+
> /文案
|
|
94
|
+
|
|
95
|
+
查看可用文案.
|
|
96
|
+
|
|
97
|
+
> /文案 [Type]
|
|
98
|
+
|
|
99
|
+
查看帮助,如果有的话。
|
|
100
|
+
|
|
101
|
+
#### 保留关键字
|
|
102
|
+
|
|
103
|
+
只有 SuperAdmin 才能使用。
|
|
104
|
+
|
|
105
|
+
1. reload: 重新加载定型文数据
|
|
106
|
+
2. **fetch**: !!慎用!! 调用 pip 更新 nonebot-plugin-copywrite,由于依赖问题,可能下一次bot就无法启动了。
|
|
107
|
+
|
|
108
|
+
#### 文案 示例
|
|
109
|
+
|
|
110
|
+
> /文案
|
|
111
|
+
|
|
112
|
+
```yaml
|
|
113
|
+
Yan:
|
|
114
|
+
不是高三生, 乙游大世界, 两种可能, 你说得对, 女性凝视, 二次元, 四不吃, 回来吧, 带节奏, 慢就业, 紧缩术, 恩情, 意林, 饭局, 鸣潮
|
|
115
|
+
Life.Checkpoint:
|
|
116
|
+
第一个被抓, 求真学生, 表白
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
> /copywrite reload
|
|
122
|
+
|
|
123
|
+
```yaml
|
|
124
|
+
重新加载完成。
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
> /文案 鸣潮 造新梗,套公式
|
|
130
|
+
|
|
131
|
+
```yaml
|
|
132
|
+
造新梗是这样的,网友们只需要动动手指发个帖就行了,而梗创作者要考虑的事情就很多了,什么时候抓住热点,怎么巧妙结合时事,如何让梗迅速传播,都需要深思熟虑。
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
#### 文案 Alias
|
|
136
|
+
|
|
137
|
+
- copywrite
|
|
138
|
+
|
|
139
|
+
### 汉语新解
|
|
140
|
+
|
|
141
|
+
Prompt 原作者:[李继刚](https://web.okjike.com/u/752D3103-1107-43A0-BA49-20EC29D09E36)
|
|
142
|
+
|
|
143
|
+
> /汉语新解 [Word]
|
|
144
|
+
|
|
145
|
+
将一个汉语词汇进行全新角度的解释。(看模型,GPT-4o 多正能量,Claude 多讽刺,Gemini 比较中庸)
|
|
146
|
+
|
|
147
|
+
| 参数 | 说明 |
|
|
148
|
+
| ---- | ---- |
|
|
149
|
+
| Word | 词汇,其实不仅限于汉语。 |
|
|
150
|
+
|
|
151
|
+
#### 汉语新解 示例
|
|
152
|
+
|
|
153
|
+
> /汉语新解 调休
|
|
154
|
+
|
|
155
|
+

|
|
156
|
+
|
|
157
|
+
#### 汉语新解 Alias
|
|
158
|
+
|
|
159
|
+
- new-meaning
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://v2.nonebot.dev/store"><img src="https://raw.githubusercontent.com/tkgs0/nbpt/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
|
|
3
|
+
<br>
|
|
4
|
+
<p><img src="https://raw.githubusercontent.com/tkgs0/nbpt/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<div align="center">
|
|
8
|
+
|
|
9
|
+
# Nonebot 2 定型文生成器
|
|
10
|
+
|
|
11
|
+
_✨ NoneBot 定型文生成器 ✨_
|
|
12
|
+
|
|
13
|
+
<a href="./LICENSE">
|
|
14
|
+
<img src="https://img.shields.io/github/license/Yan-Zero/nonebot-plugin-copywrite.svg" alt="license">
|
|
15
|
+
</a>
|
|
16
|
+
<a href="https://pypi.python.org/pypi/nonebot-plugin-copywrite">
|
|
17
|
+
<img src="https://img.shields.io/pypi/v/nonebot-plugin-copywrite.svg" alt="pypi">
|
|
18
|
+
</a>
|
|
19
|
+
<a href="https://www.python.org">
|
|
20
|
+
<img src="https://img.shields.io/badge/python-3.11+-blue.svg" alt="python">
|
|
21
|
+
</a>
|
|
22
|
+
<a href="https://nonebot.dev">
|
|
23
|
+
<img src="https://img.shields.io/badge/nonebot-2.4.0+-red.svg" alt="nonebot">
|
|
24
|
+
</a>
|
|
25
|
+
<a href="https://onebot.adapters.nonebot.dev">
|
|
26
|
+
<img src="https://img.shields.io/badge/OneBot-11-black?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF////29vbr6+vAAAAk1hCcwAAAAR0Uk5T////AEAqqfQAAAKcSURBVHja7NrbctswDATQXfD//zlpO7FlmwAWIOnOtNaTM5JwDMa8E+PNFz7g3waJ24fviyDPgfhz8fHP39cBcBL9KoJbQUxjA2iYqHL3FAnvzhL4GtVNUcoSZe6eSHizBcK5LL7dBr2AUZlev1ARRHCljzRALIEog6H3U6bCIyqIZdAT0eBuJYaGiJaHSjmkYIZd+qSGWAQnIaz2OArVnX6vrItQvbhZJtVGB5qX9wKqCMkb9W7aexfCO/rwQRBzsDIsYx4AOz0nhAtWu7bqkEQBO0Pr+Ftjt5fFCUEbm0Sbgdu8WSgJ5NgH2iu46R/o1UcBXJsFusWF/QUaz3RwJMEgngfaGGdSxJkE/Yg4lOBryBiMwvAhZrVMUUvwqU7F05b5WLaUIN4M4hRocQQRnEedgsn7TZB3UCpRrIJwQfqvGwsg18EnI2uSVNC8t+0QmMXogvbPg/xk+Mnw/6kW/rraUlvqgmFreAA09xW5t0AFlHrQZ3CsgvZm0FbHNKyBmheBKIF2cCA8A600aHPmFtRB1XvMsJAiza7LpPog0UJwccKdzw8rdf8MyN2ePYF896LC5hTzdZqxb6VNXInaupARLDNBWgI8spq4T0Qb5H4vWfPmHo8OyB1ito+AysNNz0oglj1U955sjUN9d41LnrX2D/u7eRwxyOaOpfyevCWbTgDEoilsOnu7zsKhjRCsnD/QzhdkYLBLXjiK4f3UWmcx2M7PO21CKVTH84638NTplt6JIQH0ZwCNuiWAfvuLhdrcOYPVO9eW3A67l7hZtgaY9GZo9AFc6cryjoeFBIWeU+npnk/nLE0OxCHL1eQsc1IciehjpJv5mqCsjeopaH6r15/MrxNnVhu7tmcslay2gO2Z1QfcfX0JMACG41/u0RrI9QAAAABJRU5ErkJggg==" alt="onebot">
|
|
27
|
+
</a>
|
|
28
|
+
<a href="https://pypi.python.org/pypi/nonebot-plugin-copywrite" rel="nofollow">
|
|
29
|
+
<img alt="pypi download" src="https://img.shields.io/pypi/dm/nonebot-plugin-copywrite" style="max-width: 100%;">
|
|
30
|
+
</a>
|
|
31
|
+
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
## 📖 介绍
|
|
35
|
+
|
|
36
|
+
基于 LLM 的定型文生成器
|
|
37
|
+
|
|
38
|
+
## ⚙️ 数据配置
|
|
39
|
+
|
|
40
|
+
### 定型文
|
|
41
|
+
|
|
42
|
+
存放于 ./data/copywrite/ 下面
|
|
43
|
+
|
|
44
|
+
#### 例子
|
|
45
|
+
|
|
46
|
+
```yaml
|
|
47
|
+
__category__: 114514
|
|
48
|
+
|
|
49
|
+
鸣潮:
|
|
50
|
+
examples:
|
|
51
|
+
- 圆桌是这样的,亚瑟王只需要使用圣剑就行了,而圆桌骑士们需要考虑的就多了,什么时候和贵妇幽会,什么时候挑起内战,都需要深思熟虑
|
|
52
|
+
- 儿童节是这样的,大哥哥只需要在家等着被抓就行了,而小萝莉要考虑的事情就很多了,什么时候喊杂鱼杂鱼,什么时候掀裙子露内裤,什么时候拉响警报器,都需要经过深思熟虑
|
|
53
|
+
- 企业家是这样的,员工只需要完成工作任务就行了,而老板要考虑的事情就很多了,什么时候拖欠工资,什么时候增加工作时间,员工绩效怎么压,都需要深思熟虑
|
|
54
|
+
addition: "你回复的文案应该是辛辣讽刺的,例如老板考虑如何拖欠工资,学生考虑低分怎么辩解,游戏玩家考虑如何开挂。"
|
|
55
|
+
model: grok-beta
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
#### 解释
|
|
59
|
+
|
|
60
|
+
- \_\_category\_\_: 定型文的分类
|
|
61
|
+
- examples: 例子
|
|
62
|
+
- addition: 附加内容,用以约束 LLM 可能的输出
|
|
63
|
+
- model: 使用的模型
|
|
64
|
+
|
|
65
|
+
## 💬 指令
|
|
66
|
+
|
|
67
|
+
### 文案
|
|
68
|
+
|
|
69
|
+
> /文案 [Type] (Keywords)* [Topic]
|
|
70
|
+
|
|
71
|
+
生产电子垃圾。
|
|
72
|
+
|
|
73
|
+
| 参数 | 说明 |
|
|
74
|
+
| ---- | ---- |
|
|
75
|
+
| Type | 文案名字 |
|
|
76
|
+
| Topic | 文案的主题 |
|
|
77
|
+
| Keywords | 文案的关键词 |
|
|
78
|
+
|
|
79
|
+
> /文案
|
|
80
|
+
|
|
81
|
+
查看可用文案.
|
|
82
|
+
|
|
83
|
+
> /文案 [Type]
|
|
84
|
+
|
|
85
|
+
查看帮助,如果有的话。
|
|
86
|
+
|
|
87
|
+
#### 保留关键字
|
|
88
|
+
|
|
89
|
+
只有 SuperAdmin 才能使用。
|
|
90
|
+
|
|
91
|
+
1. reload: 重新加载定型文数据
|
|
92
|
+
2. **fetch**: !!慎用!! 调用 pip 更新 nonebot-plugin-copywrite,由于依赖问题,可能下一次bot就无法启动了。
|
|
93
|
+
|
|
94
|
+
#### 文案 示例
|
|
95
|
+
|
|
96
|
+
> /文案
|
|
97
|
+
|
|
98
|
+
```yaml
|
|
99
|
+
Yan:
|
|
100
|
+
不是高三生, 乙游大世界, 两种可能, 你说得对, 女性凝视, 二次元, 四不吃, 回来吧, 带节奏, 慢就业, 紧缩术, 恩情, 意林, 饭局, 鸣潮
|
|
101
|
+
Life.Checkpoint:
|
|
102
|
+
第一个被抓, 求真学生, 表白
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
> /copywrite reload
|
|
108
|
+
|
|
109
|
+
```yaml
|
|
110
|
+
重新加载完成。
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
> /文案 鸣潮 造新梗,套公式
|
|
116
|
+
|
|
117
|
+
```yaml
|
|
118
|
+
造新梗是这样的,网友们只需要动动手指发个帖就行了,而梗创作者要考虑的事情就很多了,什么时候抓住热点,怎么巧妙结合时事,如何让梗迅速传播,都需要深思熟虑。
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### 文案 Alias
|
|
122
|
+
|
|
123
|
+
- copywrite
|
|
124
|
+
|
|
125
|
+
### 汉语新解
|
|
126
|
+
|
|
127
|
+
Prompt 原作者:[李继刚](https://web.okjike.com/u/752D3103-1107-43A0-BA49-20EC29D09E36)
|
|
128
|
+
|
|
129
|
+
> /汉语新解 [Word]
|
|
130
|
+
|
|
131
|
+
将一个汉语词汇进行全新角度的解释。(看模型,GPT-4o 多正能量,Claude 多讽刺,Gemini 比较中庸)
|
|
132
|
+
|
|
133
|
+
| 参数 | 说明 |
|
|
134
|
+
| ---- | ---- |
|
|
135
|
+
| Word | 词汇,其实不仅限于汉语。 |
|
|
136
|
+
|
|
137
|
+
#### 汉语新解 示例
|
|
138
|
+
|
|
139
|
+
> /汉语新解 调休
|
|
140
|
+
|
|
141
|
+

|
|
142
|
+
|
|
143
|
+
#### 汉语新解 Alias
|
|
144
|
+
|
|
145
|
+
- new-meaning
|