基于QQ音乐歌单,支持多群配置、持久化管理及定时自定义话术的音乐推荐插件
Project description
nonebot-plugin-qqmusic-reco
🎵 QQ音乐多群定时推荐插件,支持自定义话术与灵活推送配置 ✨
关于插件
适用于 NoneBot2 的 QQ 音乐推荐插件,支持多群定时推送、自定义话术、灵活配置,数据源为 QQ 音乐歌单。
安装
推荐使用 nb-cli 安装:
nb plugin install nonebot-plugin-qqmusic-reco
或使用 pip:
pip install nonebot-plugin-qqmusic-reco
快速开始
- 在 NoneBot2 项目中使用 env 配置 (全部不建议配置,配置应当前往各个模块的JSON):
qqmusic_priority=5
qqmusic_block=True
qqmusic_max_pool=200
qqmusic_output_n=3
qqmusic_seed=114514
qqmusic_cute_message=True
- 配置推荐推送:
- 指令:
reco sub <推荐名> <模式:时间> <数量>订阅本群推荐reco td或reco unsub取消订阅reco create <名> <歌单URL,...>新建推荐配置reco del <名>删除推荐配置reco now [数量]立即获取推荐reco list查看所有推荐配置reco help查看帮助
配置说明
- 推荐推送时间支持“8,12,16:30,20”格式,分钟可自定义
- 自定义话术配置存放于 localstore 数据目录的
cute_messages.json,格式示例:
[
{"start_time": "08:00", "end_time": "11:00", "messages": ["早上好喵,今天推荐...", "喵呜,清晨的歌单来啦~"]},
{"start_time": "16:00", "end_time": "22:00", "messages": ["晚上好喵,来点音乐放松一下吧~"]}
]
- 其他配置项详见
config.py,如推荐数量、优先级等
数据存储
插件所有数据(推荐配置、群组配置、自定义话术)均存放于 localstore 数据目录,支持跨平台。
依赖
- nonebot2 >= 2.0.0
- nonebot_plugin_apscheduler
- nonebot_plugin_localstore
- httpx
- pydantic
贡献与反馈
欢迎 issue、PR 或讨论!
FAQ
- Q: 如何自定义话术? A: 编辑 localstore 数据目录下的 cute_messages.json,格式见上。
- Q: 如何设置多时段推送? A: 在群配置的 timer_value 中填写多个时间点,支持“小时:分钟”以及““小时”格式。
详细用法与高级配置请见源码及注释。
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_qqmusic_reco-0.1.13.tar.gz.
File metadata
- Download URL: nonebot_plugin_qqmusic_reco-0.1.13.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.11 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fd23eb0893ab2df4315ffd427efd11e7f2fdddf4740ef8916abd3ae7da6ee55
|
|
| MD5 |
93ef7116cfe212e486e83a9502a4a406
|
|
| BLAKE2b-256 |
76c90f524154867a62a257240e21ef53a5b0edd4f6a4a67c2b9108695093ba5c
|
File details
Details for the file nonebot_plugin_qqmusic_reco-0.1.13-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_qqmusic_reco-0.1.13-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.11 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e07ecca1b6f43b89af05156516850dfe739a2e5b478e6a0aee8ef3025464218
|
|
| MD5 |
a51519c3fb9ecb92677510dbd7be6eed
|
|
| BLAKE2b-256 |
f1e4f7a7313c1141c870a347937d24703e30ef7ca3d9924e09a3a9206a7b0c32
|