nonebot-plugin-copywrite


Namenonebot-plugin-copywrite JSON
Version 0.2.3 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-11-07 11:55:03
maintainerNone
docs_urlNone
authorYan
requires_python<4.0,>=3.11
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <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>
  <br>
  <p><img src="https://raw.githubusercontent.com/tkgs0/nbpt/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# Nonebot 2 定型文生成器

_✨ NoneBot 定型文生成器 ✨_

<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/Yan-Zero/nonebot-plugin-copywrite.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-copywrite">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-copywrite.svg" alt="pypi">
</a>
<a href="https://www.python.org">
    <img src="https://img.shields.io/badge/python-3.11+-blue.svg" alt="python">
</a>
<a href="https://nonebot.dev">
    <img src="https://img.shields.io/badge/nonebot-2.4.0+-red.svg" alt="nonebot">
</a>
<a href="https://onebot.adapters.nonebot.dev">
    <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">
</a>
<!-- <a href="https://pypi.python.org/pypi/nonebot-plugin-copywrite" rel="nofollow">
    <img alt="pypi download" src="https://img.shields.io/pypi/dm/nonebot-plugin-copywrite" style="max-width: 100%;">
</a> -->

</div>

## 📖 介绍

基于 LLM 的定型文生成器

## ⚙️ 数据配置

### 定型文

存放于 ./data/copywrite/ 下面

#### 例子

```yaml
__category__: 114514

鸣潮:
  examples:
    - 圆桌是这样的,亚瑟王只需要使用圣剑就行了,而圆桌骑士们需要考虑的就多了,什么时候和贵妇幽会,什么时候挑起内战,都需要深思熟虑
    - 儿童节是这样的,大哥哥只需要在家等着被抓就行了,而小萝莉要考虑的事情就很多了,什么时候喊杂鱼杂鱼,什么时候掀裙子露内裤,什么时候拉响警报器,都需要经过深思熟虑
    - 企业家是这样的,员工只需要完成工作任务就行了,而老板要考虑的事情就很多了,什么时候拖欠工资,什么时候增加工作时间,员工绩效怎么压,都需要深思熟虑
  addition: "你回复的文案应该是辛辣讽刺的,例如老板考虑如何拖欠工资,学生考虑低分怎么辩解,游戏玩家考虑如何开挂。"
  model: grok-beta
```

#### 解释

- __category__: 定型文的分类
- examples: 例子
- addition: 附加内容,用以约束 LLM 可能的输出
- model: 使用的模型

## 💬 指令

### 文案

> /文案 [Key] (Keywords)* [Topic]
> /文案 求真学生 吃饭

查看可用文案:
> /文案

查看帮助(如果有):
> /文案 [Key]

#### 保留关键字

1. reload: 重新加载定型文数据
2. fetch: !!慎用!! 调用 pip 更新 nonebot-plugin-copywrite,由于依赖问题,可能下一次bot就无法启动了。

#### 文案 Alias

- copywrite

### 汉语新解

> /汉语新解 [Word]
> /汉语新解 求真书院

著名的某图片生成prompt

#### 汉语新解 Alias

- new-meaning


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nonebot-plugin-copywrite",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": "Yan",
    "author_email": "1964649083@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/77/7b/df1bd870e47322195c97ab0adacabd53e93029f49de98c7c61cd3d419292/nonebot_plugin_copywrite-0.2.3.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <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>\n  <br>\n  <p><img src=\"https://raw.githubusercontent.com/tkgs0/nbpt/resources/NoneBotPlugin.svg\" width=\"240\" alt=\"NoneBotPluginText\"></p>\n</div>\n\n<div align=\"center\">\n\n# Nonebot 2 \u5b9a\u578b\u6587\u751f\u6210\u5668\n\n_\u2728 NoneBot \u5b9a\u578b\u6587\u751f\u6210\u5668 \u2728_\n\n<a href=\"./LICENSE\">\n    <img src=\"https://img.shields.io/github/license/Yan-Zero/nonebot-plugin-copywrite.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nonebot-plugin-copywrite\">\n    <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-copywrite.svg\" alt=\"pypi\">\n</a>\n<a href=\"https://www.python.org\">\n    <img src=\"https://img.shields.io/badge/python-3.11+-blue.svg\" alt=\"python\">\n</a>\n<a href=\"https://nonebot.dev\">\n    <img src=\"https://img.shields.io/badge/nonebot-2.4.0+-red.svg\" alt=\"nonebot\">\n</a>\n<a href=\"https://onebot.adapters.nonebot.dev\">\n    <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\">\n</a>\n<!-- <a href=\"https://pypi.python.org/pypi/nonebot-plugin-copywrite\" rel=\"nofollow\">\n    <img alt=\"pypi download\" src=\"https://img.shields.io/pypi/dm/nonebot-plugin-copywrite\" style=\"max-width: 100%;\">\n</a> -->\n\n</div>\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u57fa\u4e8e LLM \u7684\u5b9a\u578b\u6587\u751f\u6210\u5668\n\n## \u2699\ufe0f \u6570\u636e\u914d\u7f6e\n\n### \u5b9a\u578b\u6587\n\n\u5b58\u653e\u4e8e ./data/copywrite/ \u4e0b\u9762\n\n#### \u4f8b\u5b50\n\n```yaml\n__category__: 114514\n\n\u9e23\u6f6e:\n  examples:\n    - \u5706\u684c\u662f\u8fd9\u6837\u7684\uff0c\u4e9a\u745f\u738b\u53ea\u9700\u8981\u4f7f\u7528\u5723\u5251\u5c31\u884c\u4e86\uff0c\u800c\u5706\u684c\u9a91\u58eb\u4eec\u9700\u8981\u8003\u8651\u7684\u5c31\u591a\u4e86\uff0c\u4ec0\u4e48\u65f6\u5019\u548c\u8d35\u5987\u5e7d\u4f1a\uff0c\u4ec0\u4e48\u65f6\u5019\u6311\u8d77\u5185\u6218\uff0c\u90fd\u9700\u8981\u6df1\u601d\u719f\u8651\n    - \u513f\u7ae5\u8282\u662f\u8fd9\u6837\u7684\uff0c\u5927\u54e5\u54e5\u53ea\u9700\u8981\u5728\u5bb6\u7b49\u7740\u88ab\u6293\u5c31\u884c\u4e86\uff0c\u800c\u5c0f\u841d\u8389\u8981\u8003\u8651\u7684\u4e8b\u60c5\u5c31\u5f88\u591a\u4e86\uff0c\u4ec0\u4e48\u65f6\u5019\u558a\u6742\u9c7c\u6742\u9c7c\uff0c\u4ec0\u4e48\u65f6\u5019\u6380\u88d9\u5b50\u9732\u5185\u88e4\uff0c\u4ec0\u4e48\u65f6\u5019\u62c9\u54cd\u8b66\u62a5\u5668\uff0c\u90fd\u9700\u8981\u7ecf\u8fc7\u6df1\u601d\u719f\u8651\n    - \u4f01\u4e1a\u5bb6\u662f\u8fd9\u6837\u7684\uff0c\u5458\u5de5\u53ea\u9700\u8981\u5b8c\u6210\u5de5\u4f5c\u4efb\u52a1\u5c31\u884c\u4e86\uff0c\u800c\u8001\u677f\u8981\u8003\u8651\u7684\u4e8b\u60c5\u5c31\u5f88\u591a\u4e86\uff0c\u4ec0\u4e48\u65f6\u5019\u62d6\u6b20\u5de5\u8d44\uff0c\u4ec0\u4e48\u65f6\u5019\u589e\u52a0\u5de5\u4f5c\u65f6\u95f4\uff0c\u5458\u5de5\u7ee9\u6548\u600e\u4e48\u538b\uff0c\u90fd\u9700\u8981\u6df1\u601d\u719f\u8651\n  addition: \"\u4f60\u56de\u590d\u7684\u6587\u6848\u5e94\u8be5\u662f\u8f9b\u8fa3\u8bbd\u523a\u7684\uff0c\u4f8b\u5982\u8001\u677f\u8003\u8651\u5982\u4f55\u62d6\u6b20\u5de5\u8d44\uff0c\u5b66\u751f\u8003\u8651\u4f4e\u5206\u600e\u4e48\u8fa9\u89e3\uff0c\u6e38\u620f\u73a9\u5bb6\u8003\u8651\u5982\u4f55\u5f00\u6302\u3002\"\n  model: grok-beta\n```\n\n#### \u89e3\u91ca\n\n- __category__: \u5b9a\u578b\u6587\u7684\u5206\u7c7b\n- examples: \u4f8b\u5b50\n- addition: \u9644\u52a0\u5185\u5bb9\uff0c\u7528\u4ee5\u7ea6\u675f LLM \u53ef\u80fd\u7684\u8f93\u51fa\n- model: \u4f7f\u7528\u7684\u6a21\u578b\n\n## \ud83d\udcac \u6307\u4ee4\n\n### \u6587\u6848\n\n> /\u6587\u6848 [Key] (Keywords)* [Topic]\n> /\u6587\u6848 \u6c42\u771f\u5b66\u751f \u5403\u996d\n\n\u67e5\u770b\u53ef\u7528\u6587\u6848\uff1a\n> /\u6587\u6848\n\n\u67e5\u770b\u5e2e\u52a9\uff08\u5982\u679c\u6709\uff09\uff1a\n> /\u6587\u6848 [Key]\n\n#### \u4fdd\u7559\u5173\u952e\u5b57\n\n1. reload: \u91cd\u65b0\u52a0\u8f7d\u5b9a\u578b\u6587\u6570\u636e\n2. fetch: \uff01\uff01\u614e\u7528\uff01\uff01 \u8c03\u7528 pip \u66f4\u65b0 nonebot-plugin-copywrite\uff0c\u7531\u4e8e\u4f9d\u8d56\u95ee\u9898\uff0c\u53ef\u80fd\u4e0b\u4e00\u6b21bot\u5c31\u65e0\u6cd5\u542f\u52a8\u4e86\u3002\n\n#### \u6587\u6848 Alias\n\n- copywrite\n\n### \u6c49\u8bed\u65b0\u89e3\n\n> /\u6c49\u8bed\u65b0\u89e3 [Word]\n> /\u6c49\u8bed\u65b0\u89e3 \u6c42\u771f\u4e66\u9662\n\n\u8457\u540d\u7684\u67d0\u56fe\u7247\u751f\u6210prompt\n\n#### \u6c49\u8bed\u65b0\u89e3 Alias\n\n- new-meaning\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": null,
    "version": "0.2.3",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "121708a729ff6242b66c3de224e99496c76ef4d07a55361727460b15e6346798",
                "md5": "ed8a66835f4edc634e9da99255a4e446",
                "sha256": "f9de6da57de37da25242e5aee6d67b423c4ee2b8b902a540cc52fa027b188a52"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_copywrite-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ed8a66835f4edc634e9da99255a4e446",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 40023,
            "upload_time": "2024-11-07T11:55:02",
            "upload_time_iso_8601": "2024-11-07T11:55:02.274045Z",
            "url": "https://files.pythonhosted.org/packages/12/17/08a729ff6242b66c3de224e99496c76ef4d07a55361727460b15e6346798/nonebot_plugin_copywrite-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "777bdf1bd870e47322195c97ab0adacabd53e93029f49de98c7c61cd3d419292",
                "md5": "fa413662c6799d98d0610ac6c5f417c1",
                "sha256": "392e69378d0818be1e8195de08d63ac19d53f8744ae9d2830be6720469ff31a5"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_copywrite-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "fa413662c6799d98d0610ac6c5f417c1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 39665,
            "upload_time": "2024-11-07T11:55:03",
            "upload_time_iso_8601": "2024-11-07T11:55:03.202467Z",
            "url": "https://files.pythonhosted.org/packages/77/7b/df1bd870e47322195c97ab0adacabd53e93029f49de98c7c61cd3d419292/nonebot_plugin_copywrite-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-07 11:55:03",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "nonebot-plugin-copywrite"
}
        
Yan
Elapsed time: 1.02045s