gold_readbag and russian

This commit is contained in:
hibiki
2021-06-15 10:57:08 +08:00
parent 95209093de
commit ea620fdae9
125 changed files with 2106 additions and 1244 deletions
+3
View File
@@ -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()
+1 -2
View File
@@ -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"]