mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-05 03:39:59 +08:00
gold_readbag and russian
This commit is contained in:
@@ -3,6 +3,9 @@ from nonebot.adapters import Bot, Event
|
||||
from nonebot.typing import T_State
|
||||
from nonebot import on_command
|
||||
|
||||
__plugin_name__ = '点歌'
|
||||
|
||||
__plugin_usage__ = '用法:点歌 [歌名]'
|
||||
|
||||
dataget = dataGet()
|
||||
|
||||
|
||||
@@ -98,8 +98,7 @@ class dataGet(dataApi):
|
||||
r = await self.api.getSongInfo(songId)
|
||||
if r is None:
|
||||
raise WrongDataError
|
||||
print(r)
|
||||
if r['code'] == '-460':
|
||||
if r['code'] == -460:
|
||||
return '网易云网络繁忙!'
|
||||
songInfo["songName"] = r["songs"][0]["name"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user