实现youtube视频链接解析,并输出封面和标题信息
给asmr群的烤肉man和群友写的,目前仍处于开发状态。
ps:有任何问题或建议可以直接提issue或者发email到qq邮箱,我会尽快解决/实现喵。
开发中,没发包,无法使用包管理器安装。
如果使用gitclone安装的话,请将文件下载到site—package文件夹下,
然后打开 nonebot2 项目根目录下的 pyproject.toml
文件,在 [tool.nonebot]
部分的 plugins
项里追加写入nonebot_plugin_YouTube即可
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot_plugin_YouTube
pdm
pdm add nonebot_plugin_YouTube
poetry
poetry add nonebot_plugin_YouTube
conda
conda install nonebot_plugin_YouTube
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分的 plugins
项里追加写入
[tool.nonebot]
plugins = [
# ...
"nonebot_plugin_YouTube"
]
无需配置,开箱即用。
检测到youtube链接后自动发送一条消息,包含YouTube视频封面和标题
黑纸折扇 [Perseus037] (https://github.com/Perseus037)
QQ:1209228678
- student_2333 对于我学习编写插件和配置qqbot等过程中的无私帮助
- 实现最基本的功能,检测到youtube链接后输出视频封面和标题