add wyy
This commit is contained in:
parent
2656a182aa
commit
efefa846b3
1 changed files with 15 additions and 0 deletions
15
worker/wyy.py
Normal file
15
worker/wyy.py
Normal 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']
|
Loading…
Reference in a new issue