Skip to main content

nonebot2语音点歌插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-voicemusic

✨ NoneBot 语音发送点歌插件 ✨

📖 介绍

从 QChatGPT 移植的 Nonebot 语音收听点歌插件

致谢:

QChatGPT_Plugin_Music

QChatGPT_Plugin_QQMusic

星之阁API

💿 安装

使用 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音乐上有的音乐

🎉 使用

指令表

指令 权限 需要@ 范围 说明
点歌 <歌名> <歌手> 群员 群聊 歌手为可选项

效果图

919e9a51d7af4dc558b2b4968f3a13c3

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

nonebot_plugin_voicemusic-0.1.17.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_voicemusic-0.1.17-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_voicemusic-0.1.17.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_voicemusic-0.1.17.tar.gz
Algorithm Hash digest
SHA256 f71bccbc038d0661fe616b2d2de215e6fef01c2f871ac1d3ad6e3acfdaaeea3c
MD5 daf1a4f52c6b77b0a3a1e47e510d38c9
BLAKE2b-256 4b480c6aa8645c5577d80e79d8ea6abe43f952be1376f70a6ea5aa7caa39f456

See more details on using hashes here.

File details

Details for the file nonebot_plugin_voicemusic-0.1.17-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_voicemusic-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 2245e8a4c51a743b776aacfcc32f11363d6d72119e1ca238ff65e8fb326d84e7
MD5 a6c18d7b09a304d0355fa1b3bb1f4d67
BLAKE2b-256 f49044782ea18ac33d121f3bb083d7a779a52581a356c1795b11471a26acf1f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page