Phigros谱面自动渲染NoneBot2插件,调用phi-tk-cli生成谱面视频
Project description
nonebot-plugin-phitk-autorender
📚 让”kkp”变简单,不要再让”懒得开电脑渲染”成为遗憾 📚
🔥 基于 NoneBot2, Phi-TK-CLI 的 Phigros 谱面渲染插件 🔥
📖 介绍
本插件可以下载用户提供的 .pez, .zip 文件,并调用 phi-tk-cli 渲染
💿 安装
⚠️记得先去
安装 Phi-TK-CLI!
方式一:手动安装
暂不确定是否能正常安装() 咱还是建议手动把文件夹下载到 bot 的 plugins 文件夹下完成安装,随后配置 pyproject.toml
方式二:或许可以吧...
1. 使用 nb-cli 安装
nb plugin install nonebot-plugin-phitk-autorender
2. 使用包管理器安装
1️⃣ 使用 pip 安装插件:
pip install nonebot-plugin-phitk-autorender
2️⃣ 在 NoneBot2 项目的 pyproject.toml 文件中添加插件:
[tool.nonebot]
plugins = ["nonebot-plugin-phitk-autorender"]
🎮 使用方法
基础指令
引用一个 .pez | .zip 文件并 @bot /render- 以默认1080p 30fps 无加载动画&结算动画 背景亮度40渲染引用谱面Alternative: @bot /xr- /render 的命令别名
自定义参数(都是可选的)
| 排序 | 说明 | 可用值 | 默认值 | 补充说明 |
|---|---|---|---|---|
| 1 | 分辨率 | 360p | 480p | 720p | 1k | 2k | 1k | 默认4:3 详见代码 |
| 2 | 帧率 | 0-120 | 30 | 其实 phi-tk-cli 原生支持更高帧率,可修改代码解除最高 120fps 限制 |
| 3 | 背景亮度 | 0~100 | 40 | 0=最暗 100=最亮 |
| 4 | 显示加载界面 | 布尔 | False | |
| 5 | 显示结算界面 | 布尔 | False | 3秒 |
💡 提示: 文字包含空格需要加引号,换行使用\n
使用示例
@bot /xr & @bot /render # 基础用法
@bot /xr 2k 120 0 # 自定义分辨率 帧率 背景亮度
@bot /xr load finish # 显示加载界面和结算界面
@bot /xr 2k 120 0 load finish # 组合多个参数...
📝 功能特点
- ✅ 支持自定义渲染参数
- ✅ 支持高质量渲染
- ✅ phi-tk-cli 支持服务器硬件加速
- ✅ 支持曲绘背景
- ✅ 支持 info.yml 解析出的歌曲信息&难度信息显示 (❌ 暂不支持 info.txt 解析)
- ❌ 不支持Simai谱面渲染
🔧 依赖
- Python 3.8+ (已测试支持 3.8 - 3.12)
- NoneBot2 >= 2.0.0
📄 开源许可
本项目基于 GPL-3.0 许可证开源。
注意事项:
- 本项目代码使用 GPL-3.0 许可证开源,您可以自由使用和修改代码
- 请遵守原始素材的使用条款和限制
🙏 鸣谢
- Link - Phi-TK 开发者
- Microsoft Copilot - 贡献了部分代码
- DeepSeek - 贡献了部分代码
- NoneBot2 - 跨平台 Python 异步机器人框架
📞 联系
(我写的代码太史了能不要骂我吗 求放过.jpg)呜呜😭
QQ:3466756568💬 反馈
如有问题或建议,请:
- 提交 Issue
😅 废话
- 此 Readme.md 参考了 nonebot-plugin-arcaea-sticker 的 readme
- 部分代码由AI编写/修改
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_phitk_autorender-1.0.4.tar.gz.
File metadata
- Download URL: nonebot_plugin_phitk_autorender-1.0.4.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
165c90f0c0f656c6f100246d23d0eebac28b01fdf9f226f68fa55b4f19d1bd79
|
|
| MD5 |
889dff0eeaf6c201e0bcb9e6b8ac1b8d
|
|
| BLAKE2b-256 |
c4a0f193c31512ef9b9903e4f30d92a0bf69668311b9a1b78251ad80f348793c
|
File details
Details for the file nonebot_plugin_phitk_autorender-1.0.4-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_phitk_autorender-1.0.4-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b86c0f65900e7391a590c873a41900b7e4b78407ba6f7daa38dc953b56be72f
|
|
| MD5 |
3352d273fefe2afd3de7e371f769a848
|
|
| BLAKE2b-256 |
2b8b72051b7cecf14f3b641939ae8384ac93c6ef56b27d664d90604e5ab1d35a
|