Skip to main content

An ncm music downloader plugin for nonebot2

Project description

nonebot-plugin-ncm

基于go-cqhttpnonebot2 的网易无损音乐下载

开始

pip install nonebot-plugin-ncm 进行安装
bot.py添加nonebot.load_plugin('nonebot-plugin-ncm')

使用说明

.env配置文件中需要添加拥有VIP的网易云账号
本程序实质为调用web接口下载音乐上传
默认下载最高音质的音乐

ncm_admin=["owner", "admin"] # 设置命令权限(非解析下载,仅解析功能开关设置)
ncm_phone= #手机登录
ncm_password= #密码
ncm_song=True  # 单曲解析开关
ncm_list=True  # 歌单解析开关
ncm_priority=2  # 解析优先级(ncm插件解析的优先级,1最高)
white_list=[]  # 白名单一键导入

网易云单曲分享到群内会自动解析下载
仅限群聊使用!!!(因为go-cqhttp还不支持好友发文件)

nonebot-adapter-cqhttp 2.0.0a14版本存在bug,请回滚到2.0.0a13版本使用!!!
pip install nonebot-adapter-cqhttp==2.0.0a13
目前使用最新版即可

默认不开启解析功能
请使用/ncm t 启动解析
(或者使用配置中的white_list项批量导入需要开启的群号)

回复bot消息即可自动下载上传音乐文件(回复消息不输入内容也行)

低版本升级至1.0.0版本请删掉db文件夹

功能列表

  • 识别网易云单曲
    • 链接
    • 卡片
    • 卡片转发
  • 识别网易云歌单
    • 链接
    • 卡片
    • 卡片转发

命令列表:(命令开始符号可自行调换)

命令 备注
/ncm 获取命令菜单
/ncm t 开启解析
/ncm f 关闭解析

示例图

点击查看详细内容

单曲
WqbK7d.png 歌单
WqbQAA.png

鸣谢

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nonebot_plugin_ncm-1.2.0-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

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