Archived
1
0
Fork 0
This commit is contained in:
yzhh 2023-01-31 21:10:51 +08:00
parent 0bedd8baa1
commit a4f78bf19b
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ class MessageSession(MS):
def asDisplay(self):
m = self.session.message.message
m = re.sub(r'\[CQ:at,qq=(.*?)]', r'QQ|\\1', html.unescape(m))
m = re.sub(r'\[CQ:at,qq=(.*?)]', r'QQ|\1', html.unescape(m))
return ''.join(
re.split(r'\[CQ:.*?]', m)).strip()

View file

@ -120,7 +120,7 @@ class MessageSession(MS):
def asDisplay(self):
msg = self.session.message.content
msg = re.sub(r'<@(.*?)>', r'Discord|Client|\\1', msg)
msg = re.sub(r'<@(.*?)>', r'Discord|Client|\1', msg)
return msg
async def delete(self):