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_bot=  # 机器人QQ
ncm_song=True  # 单曲解析开关
ncm_list=True  # 歌单解析开关
white_list=[]  # 白名单一键导入

网易云单曲分享到群内会自动解析下载
默认不开启解析功能
请使用/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.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_ncm-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_ncm-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.9

File hashes

Hashes for nonebot_plugin_ncm-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ac2c4160881dfa03edd96ed7b8866c45c5e6198c38b29a1f3fb4b0c8d0a7dbc
MD5 2f75b6368a9f3c04878f88d36d13f8ee
BLAKE2b-256 93b82618f3d7a1f96a4a53b3e53ebae86ec56080609e1ecc0c864f7dbb3d515e

See more details on using hashes here.

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