haikerapples / timetask

一款支持自定义定时任务的chatgpt-on-wechat插件
MIT License
228 stars 55 forks source link

<@bot $time 明天 08:30 点歌 刘德华>该命令点歌失败 #9

Open PrettyTao9527 opened 1 year ago

PrettyTao9527 commented 1 year ago

首先:timetask插件正常安装,并且早报、搜索、提醒、GPT等功能都正常,唯独点歌任务建立是没问题,但是到点之后没有歌曲播放,且报错如下:未知插件命令 查看插件命令列表请输入#help 插件名。

PrettyTao9527 commented 1 year ago

有哪位大佬知道怎么解决点歌功能吗?求指导

LSliu666 commented 11 months ago

需要下载安装相应插件,插件地址:https://github.com/nautilis/plugin_music

markgeen commented 10 months ago

需要下载安装相应插件,插件地址:https://github.com/nautilis/plugin_music

这个plugin_music插件执行一直报错:[INFO][2023-12-03 18:38:18][netease_music.py:42] - content => music 点歌:可惜我是水瓶座-杨千嬅 可惜我是水瓶座 杨千嬅 200 ERROR:root:search song buss code:50000005, resp:{'code': 50000005} [ERROR][2023-12-03 18:38:19][chat_channel.py:299] - Worker return exception: 'NoneType' object is not subscriptable Traceback (most recent call last): File "C:\Users\1614879355\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\1614879355\Desktop\python work\chatgpt-on-wechat\channel\chat_channel.py", line 168, in _handle reply = self._generate_reply(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\1614879355\Desktop\python work\chatgpt-on-wechat\channel\chat_channel.py", line 178, in _generate_reply e_context = PluginManager().emit_event( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\1614879355\Desktop\python work\chatgpt-on-wechat\plugins\plugin_manager.py", line 189, in emit_event instance.handlers[e_context.event](e_context, args, **kwargs) File "C:\Users\1614879355\Desktop\python work\chatgpt-on-wechat\plugins\plugin_music\netease_music.py", line 52, in on_handle_context url, name, ar = self.search_song(msg) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\1614879355\Desktop\python work\chatgpt-on-wechat\plugins\plugin_music\netease_music.py", line 99, in search_song if resp["code"] == 200:


TypeError: 'NoneType' object is not subscriptable不知道为啥。用singsong+网易云api成功点歌了。
sakiyumemori commented 3 months ago

需要下载安装相应插件,插件地址:https://github.com/nautilis/plugin_music

这个plugin_music插件执行一直报错:[INFO][2023-12-03 18:38:18][netease_music.py:42] - content => music 点歌:可惜我是水瓶座-杨千嬅 可惜我是水瓶座 杨千嬅 200 ERROR:root:search song buss code:50000005, resp:{'code': 50000005} [ERROR][2023-12-03 18:38:19][chat_channel.py:299] - Worker return exception: 'NoneType' object is not subscriptable Traceback (most recent call last): File "C:\Users\1614879355\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\1614879355\Desktop\python work\chatgpt-on-wechat\channel\chat_channel.py", line 168, in _handle reply = self._generate_reply(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\1614879355\Desktop\python work\chatgpt-on-wechat\channel\chat_channel.py", line 178, in _generate_reply e_context = PluginManager().emit_event( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\1614879355\Desktop\python work\chatgpt-on-wechat\plugins\plugin_manager.py", line 189, in emit_event instance.handlers[e_context.event](e_context, args, **kwargs) File "C:\Users\1614879355\Desktop\python work\chatgpt-on-wechat\plugins\plugin_music\netease_music.py", line 52, in on_handle_context url, name, ar = self.search_song(msg) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\1614879355\Desktop\python work\chatgpt-on-wechat\plugins\plugin_music\netease_music.py", line 99, in search_song if resp["code"] == 200: ~~~~^^^^^^^^ TypeError: 'NoneType' object is not subscriptable不知道为啥。用singsong+网易云api成功点歌了。

config.json中的passwd需要md5 32位小写加密后填入