Coder Social home page Coder Social logo

nonebot-plugin-ncm's Introduction

nonebot

nonebot-plugin-ncm

✨ 基于go-cqhttp与nonebot2的 网易云 无损音乐 点歌/下载 ✨

license nonebot release wakatime

开始

1.pip install nonebot-plugin-ncm 进行安装
2.并在bot.py添加nonebot.load_plugin('nonebot-plugin-ncm')(如果是通过nb-cli安装可以跳过这步(beta1以上版本))
如果希望使用nonebot2 a16及以下版本
请使用pip install nonebot-plugin-ncm==1.1.0进行安装

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

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

使用说明

.env配置文件中需要添加拥有VIP的网易云账号

本程序实质为调用web接口下载音乐上传
默认下载最高音质的音乐

默认解析状态为关闭,请在每个群内使用/ncm t开启

ncm_admin=["owner", "admin"] # 设置命令权限(非解析下载,仅解析功能开关设置)
ncm_phone=  # 手机登录
ncm_password=  # 密码
# (总开关代表是否可以在群内开启
# 总开关开启后在每个群内依旧是默认关闭的)
ncm_song=True  # 单曲解析总开关
ncm_list=True  # 歌单解析总开关
ncm_search=True  # 点歌总总开关
white_list=[]  # 白名单一键导入

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

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

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

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

功能列表

  • 识别/下载 网易云单曲
    • 链接
    • 卡片
    • 卡片转发
  • 识别/下载 网易云歌单
    • 链接
    • 卡片
    • 卡片转发
  • 点歌(网易云)
  • QQ音乐无损下载

示例图

点击查看详细内容

单曲
WqbK7d.png 歌单
WqbQAA.png

鸣谢

nonebot-plugin-ncm's People

Contributors

kituin avatar kckt0112 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.