nonebot2语音点歌插件
Project description
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号
key = "YOUR_key" # 请将这里的'YOUR_key'替换为获取的qqmusic_key
获取qqmusic_key/qm_keyst的方法:打开QQ音乐官网,登录后按f12并切换到应用(application)后在cookies中寻找参数填入就好 只能获取QQ音乐上有的音乐
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
点歌 <歌名> <歌手> | 群员 | 否 | 群聊 | 歌手为可选项 |
效果图
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file nonebot_plugin_voicemusic-0.1.13.tar.gz
.
File metadata
- Download URL: nonebot_plugin_voicemusic-0.1.13.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4785124fc2c99e9a89aa095ae2a70ff0c29c2afd29af93167f9dd2fbb2a6149 |
|
MD5 | 2966a51343659e7acb450a8dbed35bb2 |
|
BLAKE2b-256 | c6bfba15f23a8ffc30a1a47d392df18dfdca5426114fafd5ad0338f2726dd25e |
File details
Details for the file nonebot_plugin_voicemusic-0.1.13-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_voicemusic-0.1.13-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4c946053213f1664c88368f462dfbc787fa7189d7bbd479944dfae7fa69d866 |
|
MD5 | 2304cb7c1a65e4c13443cf2118452359 |
|
BLAKE2b-256 | 495c6ed3c9224ecf2188ea44bd02e217417bf4f11dd9929cbac83ed829f1a59a |