Add files via upload
添加‘笑死’
This commit is contained in:
parent
9466bff17c
commit
1318881681
1 changed files with 16 additions and 0 deletions
16
worker/xs.py
Normal file
16
worker/xs.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
from zzcore import StdAns, mysakuya
|
||||||
|
import requests
|
||||||
|
|
||||||
|
class Ans(StdAns):
|
||||||
|
def GETMSG(self):
|
||||||
|
msg=''
|
||||||
|
try:
|
||||||
|
msg += xs()
|
||||||
|
except:
|
||||||
|
msg += '可能是机器人笑死了!'
|
||||||
|
return msg
|
||||||
|
|
||||||
|
def xs():
|
||||||
|
url = "http://api-x.aya1.xyz:6/"
|
||||||
|
text = requests.get(url=url).text
|
||||||
|
return text
|
Loading…
Reference in a new issue