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 | 是 | 提供skey的qq号 |
SKEY | 是 | 你获取的qqmusic_key |
例:
UIN=123
SKEY=xxx
获取qqmusic_key/qm_keyst的方法:打开QQ音乐官网,登录后按f12并切换到网络(network)后随便点一个链接寻找参数填入就好 只能获取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
Close
Hashes for nonebot_plugin_voicemusic-0.1.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d131d7a01acb11141833294b00db3731ccc014b95ece62309f00f5ccb3d6fbe |
|
MD5 | c399345972ee01b1b613228072252488 |
|
BLAKE2b-256 | 34fa6ca10cf3c740a8672ce62e121dc5595ba09ec7962b52b7a0c452c7748b90 |
Close
Hashes for nonebot_plugin_voicemusic-0.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69e06e215f4338a0d011324d7ba77e3556302eb602703a9cd77dc3aa02beb8ff |
|
MD5 | 4250a79b7d844f83f3e67e24ce120b98 |
|
BLAKE2b-256 | c2e65879c7be616dd2dd308a50d1f19fd9edc3f47d02367a8c64efb563f66aa0 |