XZZ/worker/wyy.py

15 lines
404 B
Python
Raw Normal View History

2020-08-04 22:00:28 +08:00
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']