XZZ/worker/echo.py

15 lines
483 B
Python
Raw Normal View History

2020-02-28 10:34:34 +08:00
import random
from zzcore import StdAns
class Ans(StdAns):
def GETMSG(self):
2020-02-29 00:11:41 +08:00
if len(self.parms) < 2:
return '不加参数是坏文明!'
2020-02-28 10:34:34 +08:00
r = random.randint(1,3)
if r == 1:
2020-03-16 15:46:37 +08:00
msg = self.raw_msg['message'][6:]
2020-02-28 10:34:34 +08:00
elif r == 2:
msg = "汝以为咱会复读的嘛!\n(╯' - ')╯︵ ┻━┻\n" + self.raw_msg['message'][5:]
elif r == 3:
msg = '咱才不做复读机。→_→'
return msg