nonebot-plugin-voicemusic
✨ NoneBot 语音发送点歌插件 ✨
📖 介绍
从 QChatGPT 移植的 Nonebot 语音收听点歌插件
致谢:
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-voicemusic
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-voicemusic
pdm
pdm add nonebot-plugin-voicemusic
poetry
poetry add nonebot-plugin-voicemusic
conda
conda install nonebot-plugin-voicemusic
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_voicemusic"]
⚙️ 配置
需要下载安装ffmpeg
Linux可执行如下命令来安装ffmpeg
sudo apt install ffmpeg
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 说明 |
|---|---|---|
| uin | 否 | 提供key的qq号 |
| key | 否 | qqmusic_key |
例:
uin="YOUR_UIN" # 请将这里的'YOUR_UIN'替换为提供key的qq号
skey="YOUR_SKEY" # 请将这里的'YOUR_SKEY'替换为获取的qqmusic_key
获取qqmusic_key/qm_keyst的方法:打开QQ音乐官网,登录后按f12并切换到应用(application)后在cookies中寻找参数填入就好 只能获取QQ音乐上有的音乐
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| 点歌 <歌名> <歌手> | 群员 | 否 | 群聊 | 歌手为可选项 |
效果图
Metadata
Release files for nonebot-plugin-voicemusic 0.1.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_voicemusic-0.1.20.tar.gz | 4.8 kB | Without provenance | Details for nonebot_plugin_voicemusic-0.1.20.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_voicemusic-0.1.20-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_voicemusic-0.1.20-py3-none-any.whl |
Total release size: 10.2 kB
Release files / nonebot_plugin_voicemusic-0.1.20.tar.gz
| Download URL | nonebot_plugin_voicemusic-0.1.20.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d68eb5587550d15fb02190b0aba16656dde6d5288d2c3c15cc5bf0cfabe5811
|
|
BLAKE2b-256 checksum How to use checksums |
23cf8e855b1fcad126108dae1ba8403620632234a079a18a90d0bee5bc1ae6ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / nonebot_plugin_voicemusic-0.1.20-py3-none-any.whl
| Download URL | nonebot_plugin_voicemusic-0.1.20-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a1adfc8229b6b244bda4e6f46a00045e1b8a072931e9edd6e7080e5cbefb892
|
|
BLAKE2b-256 checksum How to use checksums |
66c1a5d742c7f6b25c9984df5ef579843a268c75fe092e96fe4a1ad3e474e8ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for nonebot-plugin-voicemusic 0.1.20
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.