Add command

This commit is contained in:
夜坂雅 2022-09-07 06:13:42 +08:00
parent 77cd6ff8e1
commit b11f4c87b1

View file

@ -108,6 +108,10 @@ def make_jerryxiao_reply(
elif len(ref) == 3 and ref[1] == "":
reply = f"{room.user_name(from_sender)} {ref[0]}{ref[1:]} {room.user_name(to_sender)}"
reply_formatted = f"{from_pill} {ref[0]}{ref[1:]} {to_pill}"
elif ref.startswith("发动"):
effect = ref[len("发动"):]
reply = f"{room.user_name(from_sender)}{room.user_name(to_sender)} 发动了{effect}"
reply_formatted = f"{from_pill}{to_pill} 发动了{effect}"
else:
reply = f"{room.user_name(from_sender)} {ref}{room.user_name(to_sender)}"
reply_formatted = f"{from_pill} {ref}{to_pill}"