a plugin for nonebot to fetch game torrent from Aimheaven
Project description
nonebot-plugin-game-torrent
⭐基于Nonebot2的获取游戏种子插件⭐
⭐ 介绍
为用户在线提供游戏种子资源
💿 安装
安装
pip 安装
pip install nonebot-plugin-game-torrent
- 在nonebot的pyproject.toml中的plugins = ["xxx"]添加此插件
nb-cli安装
nb plugin install nonebot-plugin-game-torrent -U
git clone安装(不推荐)
- 命令窗口
cmd
下运行
git clone https://github.com/Cvandia/nonebot-plugin-game-torrent
- 在窗口运行处
将文件夹
nonebot-plugin-torrent-game
复制到bot根目录下的src/plugins
(或创建bot时的其他名称xxx/plugins
)
注意
推荐镜像站下载
清华源https://pypi.tuna.tsinghua.edu.cn/simple
阿里源https://mirrors.aliyun.com/pypi/simple/
⚙️ 配置
在env.中添加以下配置
配置 | 类型 | 默认值 | 说明 |
---|---|---|---|
cos_max | int | 5 | 最大返回cos图片数量 |
cos_path | str | 无 | 不配置则默认下载到bot根目录的"data/genshin_cos" ,支持绝对路劲如"C:/Users/image" 和相对bot根目录路劲如"coser/image" |
cos_cd | int | 30 | 用户触发cd |
cos_forward_msg | bool | True | 默认是否合并转发 |
cos_delay | float | 0.5 | 当上面的配置项为False 时,发送图片的每张延迟s |
注意:绝对路劲中用
/
,用\
可能会被转义
⭐ 使用
指令:
指令 | 需要@ | 范围 | 说明 | 权限 |
---|---|---|---|---|
下载cos | 否 | 群聊、私聊 | 下载热门cos图 | 超管、群主、管理员 |
热门cos | 否 | 同上 | 获取指定游戏热门cos图,如热门cos 原神 x3 |
全部 |
日、周、月榜cos | 否 | 同上 | 获取排行榜cos图。如日榜cos 原神 x3 |
全部 |
最新cos | 否 | 同上 | 和上面差不多,不写了,哼哼 | 全部 |
精品cos | 否 | 同上 | 上上面一样的道理! | 全部 |
搜索(原神|崩坏3|大别野|星穹铁道)cos | 否 | 同上 | 搜索米游社社区的cos图片 | 全部 |
开启每日推送xx (时间) | 否 | 仅群聊 | 如开启每日推送原神 8:30 ,注意时间的格式 |
超管、群主、管理员 |
查看本群推送 | 是 | 群聊 | 查看本群的订阅cos目录 | 全部 |
注意
指令触发方式是正则匹配的,不需要加指令前缀
🌙 未来
- 缓慢更新,最近学业繁忙哦~
- 随机发送cos图片
- 保存cos图
- 内置cd和用户触发上限
- 合并转发发送多张cos图
playwright获取cos图
选择发送图库方式:离线 (迅速) or 在线(缓慢、目前是的)
- 支持米游社其他社区cos获取
- 支持每日推送热榜的cos图
❗免责声明
本插件仅供学习和研究使用,使用者需自行承担使用插件的风险。作者不对插件的使用造成的任何损失或问题负责。请合理使用插件,遵守相关法律法规。
💝 特别鸣谢
- nonebot2: 本项目的基础,非常好用的聊天机器人框架。
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_game_torrent-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c86f0975efd3c54556dfb75ca80857d7343453a5ad18e2183deede65fbf81cd |
|
MD5 | 90a45b2eaf9357006b613236ca64e6d4 |
|
BLAKE2b-256 | 02c52a831d00a16588468808e7fc3101034908a2704de47a768366e13e2addf1 |
Close
Hashes for nonebot_plugin_game_torrent-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cda1641c8d26cd39cc7744440c6f31e9f1382ff77198cb8c540ee5d6baad2087 |
|
MD5 | 395ddd032315c6743c9a116a5432590d |
|
BLAKE2b-256 | 33733d224ab5def3398c229475ef513958688e62e465bde8692be6b2408cd981 |