add extra_data

This commit is contained in:
hcaihao
2023-04-10 19:58:21 +08:00
parent 6f7f01b8c9
commit 011fceaf1f
5 changed files with 8 additions and 2 deletions
+3
View File
@@ -61,11 +61,14 @@ class Wcf():
self.sender = msg.sender
self.roomid = msg.roomid
self.content = msg.content
self.extra_data = msg.extra_data
def __str__(self) -> str:
s = f"{'自己发的:' if self._is_self else ''}"
s += f"{self.sender}[{self.roomid}]:{self.id}:{self.type}:{self.xml.replace(chr(10), '').replace(chr(9),'')}\n"
s += self.content
s += "\n"
s += self.extra_data
return s
def from_self(self) -> bool: