XZZ/worker/echo.py
2021-01-27 11:33:32 +08:00

19 lines
No EOL
616 B
Python

import random
from zzcore import StdAns, mysakuya
class Ans(StdAns):
def GETMSG(self):
if len(self.parms) < 2:
return '不加参数是坏文明!'
if mysakuya(self,self.raw_msg['raw_message']) == False:
return "不许你们说咲夜!!"
r = random.randint(1,3)
if r == 1:
msg = self.raw_msg['raw_message'][6:]
elif r == 2:
msg = "汝以为咱会复读的嘛!\n(╯' - ')╯︵ ┻━┻\n" + self.raw_msg['raw_message'][5:]
elif r == 3:
msg = '咱才不做复读机。→_→'
return msg