added action in join/leave events

This commit is contained in:
əlemi 2022-01-19 02:10:08 +01:00
parent 964a885552
commit 7c02a3577f

View file

@ -53,5 +53,6 @@ class ChatEvent:
match = JOIN_LEAVE_MATCHER.search(self.text)
if match:
self.type = MessageType.JOIN if match["action"] == "join" else MessageType.LEAVE
self.message = "joined" if self.type == MessageType.JOIN else "left"
self.user = match["usr"]
return