nonebot-plugin-random


Namenonebot-plugin-random JSON
Version 0.0.9 PyPI version JSON
download
home_pagehttps://github.com/jcjrobert/nonebot-plugin-random
SummaryNonebot2 通用抽图/语音插件
upload_time2023-01-03 05:49:30
maintainer
docs_urlNone
authorjcjrobert
requires_python
licenseMIT License
keywords pip nonebot2 nonebot random 抽图
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://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# nonebot-plugin-random

_✨ Nonebot2 通用抽图/语音插件 ✨_


<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/jcjrobert/nonebot-plugin-random.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-random">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-random.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">
<a href="https://jq.qq.com/?_wv=1027&k=x4krZXBW">
    <img src="https://img.shields.io/badge/QQ%E7%BE%A4-816538892-orange" alt="qq group">
</a>

</div>

## 📖 介绍

如果只是想简单做个抽图或者抽语音的功能,不需要自己写多余的代码

只需要安装本插件,在对应路径放好相关资源并配置好即可

## 💿 安装
插件仍在开发中,遇到问题还请务必提 issue。

<details>
<summary>使用 nb-cli 安装</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

    nb plugin install nonebot-plugin-random

</details>

<details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

<details>
<summary>pip</summary>

    pip install nonebot-plugin-random
</details>
<details>
<summary>pdm</summary>

    pdm add nonebot-plugin-random
</details>
<details>
<summary>poetry</summary>

    poetry add nonebot-plugin-random
</details>
<details>
<summary>conda</summary>

    conda install nonebot-plugin-random
</details>

打开 nonebot2 项目的 `bot.py` 文件, 在其中写入

    nonebot.load_plugin('nonebot-plugin-random')

</details>

<details>
<summary>从 github 安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 输入以下命令克隆此储存库

    git clone https://github.com/jcjrobert/nonebot-plugin-random.git

打开 nonebot2 项目的 `bot.py` 文件, 在其中写入

    nonebot.load_plugin('src.plugins.nonebot-plugin-random')

</details>

## 🎉 使用

机器人每次在重启时会创建(如果没有)并读取机器人运行目录下的 `data/random/` 文件夹

然后依次读取每个文件夹,一个文件夹就是一个抽取功能

以随机capoo为例,你可以在 `data/random` 下创建capoo文件夹,然后把你喜欢的capoo图片放入文件夹

之后重启,使用命令 `随机capoo` 即可

可以在群里动态添加图片,使用命令 `添加随机capoo` + 图片 + 图片名(可选) 即可,可以回复添加,仅管理员可以添加

删除图片则使用命令`删除随机capoo` + 图片即可,可以回复删除,仅管理员可以删除,会删除全部拥有同样hash的图片

目前不能动态添加文件夹,需要手动添加并重启,这点请注意

### ⚙️ 配置

如果你有自定义命令的需求,你可以在当前文件夹,以随机capoo为例

即`data/random/capoo`下添加config.json(UTF-8编码)文件,然后按照下表进行配置并重启

| 配置项 | 必填 | 默认值 | 说明 |
|:-----:|:----:|:----:|:----:|
| "draw_output" | 否 | "image" | 抽取输出类型,有"image"/"record" |
| "message_type" | 否 | "command" | 命令响应类型,"command"即on_command,"keyword"即on_keyword, "regex"即on_regex |
| "message" | 否 | ["随机`当前文件夹文件名`"] | 自定义命令,必须是列表,若"message_type"为"keyword"时只取第一项,为"regex"时必须为两项,第一项是正则表达式,第二项是匹配表达式的命令 |
| "insert_message" | 否 | ["添加随机`当前文件夹文件名`"] | 自定义添加图片命令,必须是列表,仅"message_type"为"command"且"message_type"为"image"时有效 |
| "delete_message" | 否 | ["删除随机`当前文件夹文件名`"] | 自定义删除图片命令,必须是列表,仅"message_type"为"command"且"message_type"为"image"时有效 |
| "modify_admin_only" | 否 | false | 添加删除图片是否仅管理员可操作 |
| "is_tome" | 否 | false | 使用抽取命令时是否需要at机器人 |
| "output_prefix" | 否 | "" | 输出前缀,"draw_output"为"record"下该配置无效 |
| "output_suffix" | 否 | "" | 输出后缀,"draw_output"为"record"下该配置无效 |
| "is_at_sender" | 否 | false | 机器人发消息时是否需要at发送者,"draw_output"为"record"下该配置无效 |

如果想在输出前后缀出现文件名,请用{filestem}代表文件名,{filename}代表带后缀的文件名

### 指令表

| 指令 | 说明 |
|:-----:|:----:|
| 随机XX | 指令可见上述配置|
| 随机XX + 文件名 | 仅在"message_type"为"command"时生效,指定文件名字(搜索第一个开头为指定名称的文件,可包括后缀) |
| 添加随机XX + 图片名 | 仅在"message_type"为"command"且"message_type"为"image"时生效,添加指令可自定义,可添加数张图片,空格隔开可以分别对图片命名,可以回复添加,图片名默认为当前时间的时间戳+自动判断图片的后缀 |
| 删除随机XX | 仅在"message_type"为"command"且"message_type"为"image"时生效,删除指令可自定义,可删除数张图片,可以回复删除 |

目前去除command前缀的手段非常暴力,直接遍历command并依次进行replace,进行自定义命令时需额外注意这点,如果有完美的解决方案欢迎提出issue或PR

### 支持的文件后缀

| draw_output | suffix |
|:-----:|:----:|
| image | gif,png,jpg,jpeg |
| record | mp3,wav,ogg |
| video | mp4,avi,flv,wmv,mov,mpg,mpeg |

仅在上表的文件后缀才会被纳入随机抽取的列表当中,时间原因,只确认了这些后缀,如果有其他可以用的后缀欢迎提出issue或PR

## 📝 TODO LIST

- [ ] 对随机命令进行开关管理
- [ ] 支持文本抽取
- [ ] 菜单生成
- [ ] 支持文件统计
- [ ] 支持设置额外的文件路径进行文件抽取

## 📝 更新日志

<details>
<summary>展开/收起</summary>

### 0.0.9

- 添加删除图片默认所有人可以添加,要仅管理员需要单独设置
- 支持视频抽取

### 0.0.8

- 支持动态删除图片(仅command)

### 0.0.7

- 规定读取config.json文件必须为UTF-8编码
- 输出前后缀支持文件名
- 添加图片仅管理员可以操作

### 0.0.6

- 支持动态添加图片(仅command)

### 0.0.5

- 支持根据文件名定向抽取文件(仅command)

### 0.0.4

- 去除draw_mode,现在可以抽取该文件夹下符合格式的全部文件
- 代码优化,分离config

### 0.0.3

- 支持正则命令匹配

### 0.0.2

- 修复未配置"message"时不能正常使用随机命令的bug
- 支持输出前后缀配置和at发送者

### 0.0.1

- 插件初次发布

</details>

## 💡 特别感谢

- [noneplugin/nonebot-plugin-petpet](https://github.com/noneplugin/nonebot-plugin-petpet) Nonebot2 插件,用于制作摸头等头像相关表情包

## 其他

capoo资源欢迎加入交流群获取,日后可能会开放远程下载

## 📄 开源许可

本项目使用[MIT](./LICENSE)许可证开源

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jcjrobert/nonebot-plugin-random",
    "name": "nonebot-plugin-random",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "pip,nonebot2,nonebot,random,\u62bd\u56fe",
    "author": "jcjrobert",
    "author_email": "jcjrobbie@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/38/b9/336303de58b977b2d202d1e8680a8f18d0624fb9a05e02feaede261256c4/nonebot-plugin-random-0.0.9.tar.gz",
    "platform": "any",
    "description": "<div align=\"center\">\r\n  <a href=\"https://v2.nonebot.dev/store\"><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\"></a>\r\n  <br>\r\n  <p><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg\" width=\"240\" alt=\"NoneBotPluginText\"></p>\r\n</div>\r\n\r\n<div align=\"center\">\r\n\r\n# nonebot-plugin-random\r\n\r\n_\u2728 Nonebot2 \u901a\u7528\u62bd\u56fe/\u8bed\u97f3\u63d2\u4ef6 \u2728_\r\n\r\n\r\n<a href=\"./LICENSE\">\r\n    <img src=\"https://img.shields.io/github/license/jcjrobert/nonebot-plugin-random.svg\" alt=\"license\">\r\n</a>\r\n<a href=\"https://pypi.python.org/pypi/nonebot-plugin-random\">\r\n    <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-random.svg\" alt=\"pypi\">\r\n</a>\r\n<img src=\"https://img.shields.io/badge/python-3.8+-blue.svg\" alt=\"python\">\r\n<a href=\"https://jq.qq.com/?_wv=1027&k=x4krZXBW\">\r\n    <img src=\"https://img.shields.io/badge/QQ%E7%BE%A4-816538892-orange\" alt=\"qq group\">\r\n</a>\r\n\r\n</div>\r\n\r\n## \ud83d\udcd6 \u4ecb\u7ecd\r\n\r\n\u5982\u679c\u53ea\u662f\u60f3\u7b80\u5355\u505a\u4e2a\u62bd\u56fe\u6216\u8005\u62bd\u8bed\u97f3\u7684\u529f\u80fd\uff0c\u4e0d\u9700\u8981\u81ea\u5df1\u5199\u591a\u4f59\u7684\u4ee3\u7801\r\n\r\n\u53ea\u9700\u8981\u5b89\u88c5\u672c\u63d2\u4ef6\uff0c\u5728\u5bf9\u5e94\u8def\u5f84\u653e\u597d\u76f8\u5173\u8d44\u6e90\u5e76\u914d\u7f6e\u597d\u5373\u53ef\r\n\r\n## \ud83d\udcbf \u5b89\u88c5\r\n\u63d2\u4ef6\u4ecd\u5728\u5f00\u53d1\u4e2d\uff0c\u9047\u5230\u95ee\u9898\u8fd8\u8bf7\u52a1\u5fc5\u63d0 issue\u3002\r\n\r\n<details>\r\n<summary>\u4f7f\u7528 nb-cli \u5b89\u88c5</summary>\r\n\u5728 nonebot2 \u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e0b\u6253\u5f00\u547d\u4ee4\u884c, \u8f93\u5165\u4ee5\u4e0b\u6307\u4ee4\u5373\u53ef\u5b89\u88c5\r\n\r\n    nb plugin install nonebot-plugin-random\r\n\r\n</details>\r\n\r\n<details>\r\n<summary>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5</summary>\r\n\u5728 nonebot2 \u9879\u76ee\u7684\u63d2\u4ef6\u76ee\u5f55\u4e0b, \u6253\u5f00\u547d\u4ee4\u884c, \u6839\u636e\u4f60\u4f7f\u7528\u7684\u5305\u7ba1\u7406\u5668, \u8f93\u5165\u76f8\u5e94\u7684\u5b89\u88c5\u547d\u4ee4\r\n\r\n<details>\r\n<summary>pip</summary>\r\n\r\n    pip install nonebot-plugin-random\r\n</details>\r\n<details>\r\n<summary>pdm</summary>\r\n\r\n    pdm add nonebot-plugin-random\r\n</details>\r\n<details>\r\n<summary>poetry</summary>\r\n\r\n    poetry add nonebot-plugin-random\r\n</details>\r\n<details>\r\n<summary>conda</summary>\r\n\r\n    conda install nonebot-plugin-random\r\n</details>\r\n\r\n\u6253\u5f00 nonebot2 \u9879\u76ee\u7684 `bot.py` \u6587\u4ef6, \u5728\u5176\u4e2d\u5199\u5165\r\n\r\n    nonebot.load_plugin('nonebot-plugin-random')\r\n\r\n</details>\r\n\r\n<details>\r\n<summary>\u4ece github \u5b89\u88c5</summary>\r\n\u5728 nonebot2 \u9879\u76ee\u7684\u63d2\u4ef6\u76ee\u5f55\u4e0b, \u6253\u5f00\u547d\u4ee4\u884c, \u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u514b\u9686\u6b64\u50a8\u5b58\u5e93\r\n\r\n    git clone https://github.com/jcjrobert/nonebot-plugin-random.git\r\n\r\n\u6253\u5f00 nonebot2 \u9879\u76ee\u7684 `bot.py` \u6587\u4ef6, \u5728\u5176\u4e2d\u5199\u5165\r\n\r\n    nonebot.load_plugin('src.plugins.nonebot-plugin-random')\r\n\r\n</details>\r\n\r\n## \ud83c\udf89 \u4f7f\u7528\r\n\r\n\u673a\u5668\u4eba\u6bcf\u6b21\u5728\u91cd\u542f\u65f6\u4f1a\u521b\u5efa\uff08\u5982\u679c\u6ca1\u6709\uff09\u5e76\u8bfb\u53d6\u673a\u5668\u4eba\u8fd0\u884c\u76ee\u5f55\u4e0b\u7684 `data/random/` \u6587\u4ef6\u5939\r\n\r\n\u7136\u540e\u4f9d\u6b21\u8bfb\u53d6\u6bcf\u4e2a\u6587\u4ef6\u5939\uff0c\u4e00\u4e2a\u6587\u4ef6\u5939\u5c31\u662f\u4e00\u4e2a\u62bd\u53d6\u529f\u80fd\r\n\r\n\u4ee5\u968f\u673acapoo\u4e3a\u4f8b\uff0c\u4f60\u53ef\u4ee5\u5728 `data/random` \u4e0b\u521b\u5efacapoo\u6587\u4ef6\u5939\uff0c\u7136\u540e\u628a\u4f60\u559c\u6b22\u7684capoo\u56fe\u7247\u653e\u5165\u6587\u4ef6\u5939\r\n\r\n\u4e4b\u540e\u91cd\u542f\uff0c\u4f7f\u7528\u547d\u4ee4 `\u968f\u673acapoo` \u5373\u53ef\r\n\r\n\u53ef\u4ee5\u5728\u7fa4\u91cc\u52a8\u6001\u6dfb\u52a0\u56fe\u7247\uff0c\u4f7f\u7528\u547d\u4ee4 `\u6dfb\u52a0\u968f\u673acapoo` + \u56fe\u7247 + \u56fe\u7247\u540d\uff08\u53ef\u9009\uff09 \u5373\u53ef\uff0c\u53ef\u4ee5\u56de\u590d\u6dfb\u52a0\uff0c\u4ec5\u7ba1\u7406\u5458\u53ef\u4ee5\u6dfb\u52a0\r\n\r\n\u5220\u9664\u56fe\u7247\u5219\u4f7f\u7528\u547d\u4ee4`\u5220\u9664\u968f\u673acapoo` + \u56fe\u7247\u5373\u53ef\uff0c\u53ef\u4ee5\u56de\u590d\u5220\u9664\uff0c\u4ec5\u7ba1\u7406\u5458\u53ef\u4ee5\u5220\u9664\uff0c\u4f1a\u5220\u9664\u5168\u90e8\u62e5\u6709\u540c\u6837hash\u7684\u56fe\u7247\r\n\r\n\u76ee\u524d\u4e0d\u80fd\u52a8\u6001\u6dfb\u52a0\u6587\u4ef6\u5939\uff0c\u9700\u8981\u624b\u52a8\u6dfb\u52a0\u5e76\u91cd\u542f\uff0c\u8fd9\u70b9\u8bf7\u6ce8\u610f\r\n\r\n### \u2699\ufe0f \u914d\u7f6e\r\n\r\n\u5982\u679c\u4f60\u6709\u81ea\u5b9a\u4e49\u547d\u4ee4\u7684\u9700\u6c42\uff0c\u4f60\u53ef\u4ee5\u5728\u5f53\u524d\u6587\u4ef6\u5939\uff0c\u4ee5\u968f\u673acapoo\u4e3a\u4f8b\r\n\r\n\u5373`data/random/capoo`\u4e0b\u6dfb\u52a0config.json\uff08UTF-8\u7f16\u7801\uff09\u6587\u4ef6\uff0c\u7136\u540e\u6309\u7167\u4e0b\u8868\u8fdb\u884c\u914d\u7f6e\u5e76\u91cd\u542f\r\n\r\n| \u914d\u7f6e\u9879 | \u5fc5\u586b | \u9ed8\u8ba4\u503c | \u8bf4\u660e |\r\n|:-----:|:----:|:----:|:----:|\r\n| \"draw_output\" | \u5426 | \"image\" | \u62bd\u53d6\u8f93\u51fa\u7c7b\u578b\uff0c\u6709\"image\"/\"record\" |\r\n| \"message_type\" | \u5426 | \"command\" | \u547d\u4ee4\u54cd\u5e94\u7c7b\u578b\uff0c\"command\"\u5373on_command\uff0c\"keyword\"\u5373on_keyword, \"regex\"\u5373on_regex |\r\n| \"message\" | \u5426 | [\"\u968f\u673a`\u5f53\u524d\u6587\u4ef6\u5939\u6587\u4ef6\u540d`\"] | \u81ea\u5b9a\u4e49\u547d\u4ee4\uff0c\u5fc5\u987b\u662f\u5217\u8868\uff0c\u82e5\"message_type\"\u4e3a\"keyword\"\u65f6\u53ea\u53d6\u7b2c\u4e00\u9879\uff0c\u4e3a\"regex\"\u65f6\u5fc5\u987b\u4e3a\u4e24\u9879\uff0c\u7b2c\u4e00\u9879\u662f\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u7b2c\u4e8c\u9879\u662f\u5339\u914d\u8868\u8fbe\u5f0f\u7684\u547d\u4ee4 |\r\n| \"insert_message\" | \u5426 | [\"\u6dfb\u52a0\u968f\u673a`\u5f53\u524d\u6587\u4ef6\u5939\u6587\u4ef6\u540d`\"] | \u81ea\u5b9a\u4e49\u6dfb\u52a0\u56fe\u7247\u547d\u4ee4\uff0c\u5fc5\u987b\u662f\u5217\u8868\uff0c\u4ec5\"message_type\"\u4e3a\"command\"\u4e14\"message_type\"\u4e3a\"image\"\u65f6\u6709\u6548 |\r\n| \"delete_message\" | \u5426 | [\"\u5220\u9664\u968f\u673a`\u5f53\u524d\u6587\u4ef6\u5939\u6587\u4ef6\u540d`\"] | \u81ea\u5b9a\u4e49\u5220\u9664\u56fe\u7247\u547d\u4ee4\uff0c\u5fc5\u987b\u662f\u5217\u8868\uff0c\u4ec5\"message_type\"\u4e3a\"command\"\u4e14\"message_type\"\u4e3a\"image\"\u65f6\u6709\u6548 |\r\n| \"modify_admin_only\" | \u5426 | false | \u6dfb\u52a0\u5220\u9664\u56fe\u7247\u662f\u5426\u4ec5\u7ba1\u7406\u5458\u53ef\u64cd\u4f5c |\r\n| \"is_tome\" | \u5426 | false | \u4f7f\u7528\u62bd\u53d6\u547d\u4ee4\u65f6\u662f\u5426\u9700\u8981at\u673a\u5668\u4eba |\r\n| \"output_prefix\" | \u5426 | \"\" | \u8f93\u51fa\u524d\u7f00\uff0c\"draw_output\"\u4e3a\"record\"\u4e0b\u8be5\u914d\u7f6e\u65e0\u6548 |\r\n| \"output_suffix\" | \u5426 | \"\" | \u8f93\u51fa\u540e\u7f00\uff0c\"draw_output\"\u4e3a\"record\"\u4e0b\u8be5\u914d\u7f6e\u65e0\u6548 |\r\n| \"is_at_sender\" | \u5426 | false | \u673a\u5668\u4eba\u53d1\u6d88\u606f\u65f6\u662f\u5426\u9700\u8981at\u53d1\u9001\u8005\uff0c\"draw_output\"\u4e3a\"record\"\u4e0b\u8be5\u914d\u7f6e\u65e0\u6548 |\r\n\r\n\u5982\u679c\u60f3\u5728\u8f93\u51fa\u524d\u540e\u7f00\u51fa\u73b0\u6587\u4ef6\u540d\uff0c\u8bf7\u7528{filestem}\u4ee3\u8868\u6587\u4ef6\u540d\uff0c{filename}\u4ee3\u8868\u5e26\u540e\u7f00\u7684\u6587\u4ef6\u540d\r\n\r\n### \u6307\u4ee4\u8868\r\n\r\n| \u6307\u4ee4 | \u8bf4\u660e |\r\n|:-----:|:----:|\r\n| \u968f\u673aXX | \u6307\u4ee4\u53ef\u89c1\u4e0a\u8ff0\u914d\u7f6e|\r\n| \u968f\u673aXX + \u6587\u4ef6\u540d | \u4ec5\u5728\"message_type\"\u4e3a\"command\"\u65f6\u751f\u6548\uff0c\u6307\u5b9a\u6587\u4ef6\u540d\u5b57\uff08\u641c\u7d22\u7b2c\u4e00\u4e2a\u5f00\u5934\u4e3a\u6307\u5b9a\u540d\u79f0\u7684\u6587\u4ef6\uff0c\u53ef\u5305\u62ec\u540e\u7f00\uff09 |\r\n| \u6dfb\u52a0\u968f\u673aXX + \u56fe\u7247\u540d | \u4ec5\u5728\"message_type\"\u4e3a\"command\"\u4e14\"message_type\"\u4e3a\"image\"\u65f6\u751f\u6548\uff0c\u6dfb\u52a0\u6307\u4ee4\u53ef\u81ea\u5b9a\u4e49\uff0c\u53ef\u6dfb\u52a0\u6570\u5f20\u56fe\u7247\uff0c\u7a7a\u683c\u9694\u5f00\u53ef\u4ee5\u5206\u522b\u5bf9\u56fe\u7247\u547d\u540d\uff0c\u53ef\u4ee5\u56de\u590d\u6dfb\u52a0\uff0c\u56fe\u7247\u540d\u9ed8\u8ba4\u4e3a\u5f53\u524d\u65f6\u95f4\u7684\u65f6\u95f4\u6233+\u81ea\u52a8\u5224\u65ad\u56fe\u7247\u7684\u540e\u7f00 |\r\n| \u5220\u9664\u968f\u673aXX | \u4ec5\u5728\"message_type\"\u4e3a\"command\"\u4e14\"message_type\"\u4e3a\"image\"\u65f6\u751f\u6548\uff0c\u5220\u9664\u6307\u4ee4\u53ef\u81ea\u5b9a\u4e49\uff0c\u53ef\u5220\u9664\u6570\u5f20\u56fe\u7247\uff0c\u53ef\u4ee5\u56de\u590d\u5220\u9664 |\r\n\r\n\u76ee\u524d\u53bb\u9664command\u524d\u7f00\u7684\u624b\u6bb5\u975e\u5e38\u66b4\u529b\uff0c\u76f4\u63a5\u904d\u5386command\u5e76\u4f9d\u6b21\u8fdb\u884creplace\uff0c\u8fdb\u884c\u81ea\u5b9a\u4e49\u547d\u4ee4\u65f6\u9700\u989d\u5916\u6ce8\u610f\u8fd9\u70b9\uff0c\u5982\u679c\u6709\u5b8c\u7f8e\u7684\u89e3\u51b3\u65b9\u6848\u6b22\u8fce\u63d0\u51faissue\u6216PR\r\n\r\n### \u652f\u6301\u7684\u6587\u4ef6\u540e\u7f00\r\n\r\n| draw_output | suffix |\r\n|:-----:|:----:|\r\n| image | gif,png,jpg,jpeg |\r\n| record | mp3,wav,ogg |\r\n| video | mp4,avi,flv,wmv,mov,mpg,mpeg |\r\n\r\n\u4ec5\u5728\u4e0a\u8868\u7684\u6587\u4ef6\u540e\u7f00\u624d\u4f1a\u88ab\u7eb3\u5165\u968f\u673a\u62bd\u53d6\u7684\u5217\u8868\u5f53\u4e2d\uff0c\u65f6\u95f4\u539f\u56e0\uff0c\u53ea\u786e\u8ba4\u4e86\u8fd9\u4e9b\u540e\u7f00\uff0c\u5982\u679c\u6709\u5176\u4ed6\u53ef\u4ee5\u7528\u7684\u540e\u7f00\u6b22\u8fce\u63d0\u51faissue\u6216PR\r\n\r\n## \ud83d\udcdd TODO LIST\r\n\r\n- [ ] \u5bf9\u968f\u673a\u547d\u4ee4\u8fdb\u884c\u5f00\u5173\u7ba1\u7406\r\n- [ ] \u652f\u6301\u6587\u672c\u62bd\u53d6\r\n- [ ] \u83dc\u5355\u751f\u6210\r\n- [ ] \u652f\u6301\u6587\u4ef6\u7edf\u8ba1\r\n- [ ] \u652f\u6301\u8bbe\u7f6e\u989d\u5916\u7684\u6587\u4ef6\u8def\u5f84\u8fdb\u884c\u6587\u4ef6\u62bd\u53d6\r\n\r\n## \ud83d\udcdd \u66f4\u65b0\u65e5\u5fd7\r\n\r\n<details>\r\n<summary>\u5c55\u5f00/\u6536\u8d77</summary>\r\n\r\n### 0.0.9\r\n\r\n- \u6dfb\u52a0\u5220\u9664\u56fe\u7247\u9ed8\u8ba4\u6240\u6709\u4eba\u53ef\u4ee5\u6dfb\u52a0\uff0c\u8981\u4ec5\u7ba1\u7406\u5458\u9700\u8981\u5355\u72ec\u8bbe\u7f6e\r\n- \u652f\u6301\u89c6\u9891\u62bd\u53d6\r\n\r\n### 0.0.8\r\n\r\n- \u652f\u6301\u52a8\u6001\u5220\u9664\u56fe\u7247\uff08\u4ec5command\uff09\r\n\r\n### 0.0.7\r\n\r\n- \u89c4\u5b9a\u8bfb\u53d6config.json\u6587\u4ef6\u5fc5\u987b\u4e3aUTF-8\u7f16\u7801\r\n- \u8f93\u51fa\u524d\u540e\u7f00\u652f\u6301\u6587\u4ef6\u540d\r\n- \u6dfb\u52a0\u56fe\u7247\u4ec5\u7ba1\u7406\u5458\u53ef\u4ee5\u64cd\u4f5c\r\n\r\n### 0.0.6\r\n\r\n- \u652f\u6301\u52a8\u6001\u6dfb\u52a0\u56fe\u7247\uff08\u4ec5command\uff09\r\n\r\n### 0.0.5\r\n\r\n- \u652f\u6301\u6839\u636e\u6587\u4ef6\u540d\u5b9a\u5411\u62bd\u53d6\u6587\u4ef6\uff08\u4ec5command\uff09\r\n\r\n### 0.0.4\r\n\r\n- \u53bb\u9664draw_mode\uff0c\u73b0\u5728\u53ef\u4ee5\u62bd\u53d6\u8be5\u6587\u4ef6\u5939\u4e0b\u7b26\u5408\u683c\u5f0f\u7684\u5168\u90e8\u6587\u4ef6\r\n- \u4ee3\u7801\u4f18\u5316\uff0c\u5206\u79bbconfig\r\n\r\n### 0.0.3\r\n\r\n- \u652f\u6301\u6b63\u5219\u547d\u4ee4\u5339\u914d\r\n\r\n### 0.0.2\r\n\r\n- \u4fee\u590d\u672a\u914d\u7f6e\"message\"\u65f6\u4e0d\u80fd\u6b63\u5e38\u4f7f\u7528\u968f\u673a\u547d\u4ee4\u7684bug\r\n- \u652f\u6301\u8f93\u51fa\u524d\u540e\u7f00\u914d\u7f6e\u548cat\u53d1\u9001\u8005\r\n\r\n### 0.0.1\r\n\r\n- \u63d2\u4ef6\u521d\u6b21\u53d1\u5e03\r\n\r\n</details>\r\n\r\n## \ud83d\udca1 \u7279\u522b\u611f\u8c22\r\n\r\n- [noneplugin/nonebot-plugin-petpet](https://github.com/noneplugin/nonebot-plugin-petpet) Nonebot2 \u63d2\u4ef6\uff0c\u7528\u4e8e\u5236\u4f5c\u6478\u5934\u7b49\u5934\u50cf\u76f8\u5173\u8868\u60c5\u5305\r\n\r\n## \u5176\u4ed6\r\n\r\ncapoo\u8d44\u6e90\u6b22\u8fce\u52a0\u5165\u4ea4\u6d41\u7fa4\u83b7\u53d6\uff0c\u65e5\u540e\u53ef\u80fd\u4f1a\u5f00\u653e\u8fdc\u7a0b\u4e0b\u8f7d\r\n\r\n## \ud83d\udcc4 \u5f00\u6e90\u8bb8\u53ef\r\n\r\n\u672c\u9879\u76ee\u4f7f\u7528[MIT](./LICENSE)\u8bb8\u53ef\u8bc1\u5f00\u6e90\r\n\r\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n    SOFTWARE.\r\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Nonebot2 \u901a\u7528\u62bd\u56fe/\u8bed\u97f3\u63d2\u4ef6",
    "version": "0.0.9",
    "split_keywords": [
        "pip",
        "nonebot2",
        "nonebot",
        "random",
        "\u62bd\u56fe"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "637e67712206d0e0c8429f1ddabf3ba12f867f6da5d942bc68c5dc84b2e69a93",
                "md5": "3f5169476717b40f7ef6abe004c7531f",
                "sha256": "bf15349d2e809b567ee25ed783c97fcbf7dd5493ce2a908d6065b51256575288"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_random-0.0.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3f5169476717b40f7ef6abe004c7531f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 11043,
            "upload_time": "2023-01-03T05:49:28",
            "upload_time_iso_8601": "2023-01-03T05:49:28.546486Z",
            "url": "https://files.pythonhosted.org/packages/63/7e/67712206d0e0c8429f1ddabf3ba12f867f6da5d942bc68c5dc84b2e69a93/nonebot_plugin_random-0.0.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38b9336303de58b977b2d202d1e8680a8f18d0624fb9a05e02feaede261256c4",
                "md5": "9779553529dc54533b77f9ffeb359da1",
                "sha256": "68ddc50ec8f4990fb319aca8f12398902d7e175421378be95354f62828deae1d"
            },
            "downloads": -1,
            "filename": "nonebot-plugin-random-0.0.9.tar.gz",
            "has_sig": false,
            "md5_digest": "9779553529dc54533b77f9ffeb359da1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12536,
            "upload_time": "2023-01-03T05:49:30",
            "upload_time_iso_8601": "2023-01-03T05:49:30.512338Z",
            "url": "https://files.pythonhosted.org/packages/38/b9/336303de58b977b2d202d1e8680a8f18d0624fb9a05e02feaede261256c4/nonebot-plugin-random-0.0.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-03 05:49:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "jcjrobert",
    "github_project": "nonebot-plugin-random",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot-plugin-random"
}
        
Elapsed time: 0.03109s