Metadata-Version: 2.1
Name: nonebot-plugin-animeres
Version: 1.0.0
Summary: 动漫资源获取插件
License: GPL-2.0
Keywords: nonebot,nonebot2,animeres,anime
Author: MelodyKnit
Author-email: 2711402357@qq.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: httpx (>=0.24.1,<0.25.0)
Requires-Dist: lxml (>=4.9.2,<5.0.0)
Requires-Dist: nonebot-adapter-onebot (>=2.2.3,<3.0.0)
Requires-Dist: nonebot2[fastapi] (>=2.0.0rc1,<3.0.0)
Description-Content-Type: text/markdown

# 动漫资源获取插件

这个插件主要是网站爬取过来的数据，在使用命令进行搜索时候采用关键字的方式，比如`天气之子`这时搜索的是`天气之子`相关资源，如果获取的资源并不理想或者你只需要生肉（无字幕）资源时，你就需要用`天气之子 raw`或`天气之子 mkv`这种多个关键字空格方式进行获取，这种方式准确度会比直接用`天气之子`精准且效果好，建议采用多关键字的方式进行搜索。

## 安装

`nb plugin install nonebot-plugin-animeres`

<details>
  <summary>使用pip安装</summary>

  `pip install nonebot-plugin-animeres`
</details>

- 命令
  - `资源`、`动漫资源`
- 参数
  - `资源名称`

## 配置参数

```env
CARTOON_PROXY=                        # 设置代理端口
CARTOON_FORWARD=false                 # 合并转发的形式发送消息
CARTOON_LENGTH=3                      # 每次发送的数量，用-1表示全部取出
CARTOON_FORMANT="{title}\n{magnet}"   # 发送的消息格式化
CARTOON_ONESKIP=true                  # 当只有一个选项时跳过
```

### CARTOON_PROXY

通过`CARTOON_PROXY`参数可以设置代理来加速资源的获取或者获取不到的情况

### CARTOON_FORWARD

用来发送合并消息

![合并消息转发](image/forward.png)

### CARTOON_FORMANT

格式化字符串

| 标签 | 说明 |
|---|---|
| title | 资源名称 |
| tag | 资源标签类型 |
| size | 资源大小 |
| magnet | 种子链接 |

