Code Monkey home page Code Monkey logo

nonebot_plugin_zyk_music's Introduction

📝 nonebot_plugin_zyk_music

由于接口跑路,这个项目暂时废了,我会尽快解决,现在先暂停维护

本插件是我另一个项目改的,有兴趣的话可以去看看BlackStone_Music_GUI

📄 使用本插件前请仔细阅读README

✨ 新版本一览

📌 version 0.1.7

都更新了哪些内容?

  1. 删去酷我音乐接口
  2. 全面更新代码,更换接口

💿 安装方式

  • 使用pip

pip install nonebot_plugin_zyk_music
  • 使用nb-cli

nb plugin install nonebot_plugin_zyk_music

🔧 env配置

Name Example Type Usage Required
music_path path/to/your/music str 音乐保存路径,默认保存在music目录下 No
music_del_file False bool 是否删除下载的文件,默认为True No
music_retry_songnum 50 int 歌单发送失败时重新发送的条数 No

💡 如何交互

点歌

interaction

导入歌单

impt_songlist

🏷️ 指令

支持的平台

  • QQ音乐
  • 网易云音乐
  • 酷狗音乐
  • 咪咕音乐

QQ点歌

qq | QQ点歌 name

eg:
    qq点歌 stay

QQVIP点歌

qqvip | QQVIP点歌 [母带|无损|HQ|标准音质] name

eg:
    qq点歌 无损音质 one last kiss

酷狗点歌

酷狗 | kg点歌 name

eg:
    kg点歌 stay

网易云点歌

网易云 | 网易 | wy点歌 name

eg:
    wy点歌 stay

咪咕点歌

咪咕 | mg点歌 name

eg:
    mg点歌 stay

导入QQ音乐歌单

(COMMAND_START)导入歌单 歌单id | 歌单链接

eg:
    /导入歌单 3865449936

🐛 如果发现插件有BUG或有建议,欢迎合理Issue

❤️ 最后,如果你喜欢本插件,就请给本插件点个⭐吧

nonebot_plugin_zyk_music's People

Contributors

agnes4m avatar zyksslm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

agnes4m

nonebot_plugin_zyk_music's Issues

12-25 16:11:04 [ERROR] nonebot | Running matcher <Matcher from nonebot_plugin_zyk_music, type=message, priority=0, temp=True> failed.

File "C:\Users\16578\AppData\Local\pypoetry\Cache\virtualenvs\nonebot-uX-rUTH5-py3.9\lib\site-packages\nonebot\adapters\onebot\v11\utils.py", line 58,
in handle_api_result
raise ActionFailed(**result)
nonebot.adapters.onebot.v11.exception.ActionFailed: <ActionFailed data=None, echo='9', msg='FILE_SYSTEM_UPLOAD_API_ERROR', retcode=100, status='failed',
wording='upload failed: upload failed: 96'>

启动报错FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\webot-bWFYmPaM-py3.10\\lib\\site-packages\\nonebot_plugin_zyk_music\\User-Agent.json'

`[ERROR] nonebot | Failed to import "nonebot_plugin_zyk_music"
Traceback (most recent call last):
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\Scripts\nb.exe_main
.py", line 7, in
sys.exit(main())
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\click\core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\click\core.py", line 760, in invoke
return _callback(*args, **kwargs)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nb_cli\commands\main.py", line 30, in run
run_bot(file, app)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nb_cli\handlers\deploy.py", line 20, in run_bot
module = importlib.import_module(module_name)
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\noneBot2\webot.\bot.py", line 26, in
nonebot.load_from_toml("pyproject.toml")
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\load.py", line 122, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\load.py", line 59, in load_all_plugins
return manager.load_all_plugins()
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 168, in load_all_plugins
return set(
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 169, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
module = importlib.import_module(name)
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
super().exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot_plugin_zyk_music_init
.py", line 12, in
from .work import *
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot_plugin_zyk_music\work.py", line 23, in
with open(ua_path, "r") as u:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot_plugin_zyk_music\User-Agent.json'`

跑路了

接口跑路了,短期内不会回来,本插件暂时搁浅,不要提issue了。呜呜呜。

224540001-6fb2c524-98a5-44f8-8c1b-1059b6674a54

qqvip点歌报错~

02-18 16:50:44 [INFO] nonebot_plugin_zyk_music | 开始下载'发如雪',音源:qqvip
02-18 16:50:44 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_zyk_music) running complete
02-18 16:50:44 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_zyk_music) failed.
Traceback (most recent call last):
File "c:\program files\python\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\program files\python\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Program Files\python\Scripts\nb.exe_main
.py", line 7, in
sys.exit(main())
File "c:\program files\python\lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "c:\program files\python\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "c:\program files\python\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\program files\python\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\program files\python\lib\site-packages\click\core.py", line 754, in invoke
return _callback(*args, **kwargs)
File "c:\program files\python\lib\site-packages\nb_cli\commands\main.py", line 30, in run
run_bot(file, app)
File "c:\program files\python\lib\site-packages\nb_cli\handlers\deploy.py", line 23, in run_bot
nonebot.run()
File "c:\program files\python\lib\site-packages\nonebot_init
.py", line 273, in run
get_driver().run(*args, **kwargs)
File "c:\program files\python\lib\site-packages\nonebot\drivers\fastapi.py", line 187, in run
uvicorn.run(
File "c:\program files\python\lib\site-packages\uvicorn\main.py", line 569, in run
server.run()
File "c:\program files\python\lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "c:\program files\python\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "c:\program files\python\lib\asyncio\base_events.py", line 603, in run_until_complete
self.run_forever()
File "c:\program files\python\lib\asyncio\windows_events.py", line 316, in run_forever
super().run_forever()
File "c:\program files\python\lib\asyncio\base_events.py", line 570, in run_forever
self._run_once()
File "c:\program files\python\lib\asyncio\base_events.py", line 1859, in _run_once
handle._run()
File "c:\program files\python\lib\asyncio\events.py", line 81, in _run
self._context.run(self._callback, *self._args)
File "c:\program files\python\lib\site-packages\nonebot\message.py", line 141, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)

File "c:\program files\python\lib\site-packages\nonebot\message.py", line 187, in run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "c:\program files\python\lib\site-packages\nonebot\internal\matcher\matcher.py", line 732, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "c:\program files\python\lib\site-packages\nonebot\internal\matcher\matcher.py", line 707, in simple_run
await handler(
File "c:\program files\python\lib\site-packages\nonebot\dependencies_init
.py", line 108, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "c:\program files\python\lib\site-packages\nonebot_plugin_zyk_music_init_.py", line 105, in _
info = await get_music(mode="data", source=source, name=name, proxies=proxies, br=br, path=path, n=n)
File "c:\program files\python\lib\site-packages\nonebot_plugin_zyk_music\work.py", line 71, in get_music
return await vip_qq_download(name, n, br, path, proxies)
File "c:\program files\python\lib\site-packages\nonebot_plugin_zyk_music\work.py", line 369, in vip_qq_download
async with AsyncClient(headers=headers, params=data, follow_redirects=True, timeout=None, proxies=proxies) as client:
File "c:\program files\python\lib\site-packages\httpx_client.py", line 1405, in init
self._mounts: typing.Dict[URLPattern, typing.Optional[AsyncBaseTransport]] = {
File "c:\program files\python\lib\site-packages\httpx_client.py", line 1408, in
else self._init_proxy_transport(
File "c:\program files\python\lib\site-packages\httpx_client.py", line 1461, in _init_proxy_transport
return AsyncHTTPTransport(
File "c:\program files\python\lib\site-packages\httpx_transports\default.py", line 275, in init
elif proxy.url.scheme in ("http", "https"):
AttributeError: 'int' object has no attribute 'url'

网易云点歌报错

推测是api改了,首先原本有一个int值变成dict导致获取列表失败,其次url地址也改了

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.