This commit is contained in:
SiHuan 2020-08-04 22:00:28 +08:00
parent b658029c84
commit c05b6f557f

15
worker/wyy.py Normal file
View file

@ -0,0 +1,15 @@
from zzcore import StdAns, mysakuya
import requests
class Ans(StdAns):
def GETMSG(self):
msg = f"[CQ:reply,id={self.raw_msg['message_id']}]"
try:
msg += wyy()
except:
msg += '可能是网抑云坏掉了,可不是咱!'
return msg
def wyy():
r = requests.get(url='http://api.heerdev.top:4995/nemusic/random').json()
return r['text']