XZZ/worker/echo.py

21 lines
796 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-07-14 16:44:26 +08:00
if self.uid != 1318000868:
2020-07-14 16:49:15 +08:00
for sakuya in ['口关夜','十六夜咲夜','十六夜','十六','咲夜','Sakuya','sakuya','Izayoi Sakuya','Izayoi','izayoi','izayoi sakuya']:
2020-07-14 16:45:22 +08:00
if sakuya in self.raw_msg['message']:
2020-07-14 16:44:26 +08:00
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