1
This commit is contained in:
parent
0bedd8baa1
commit
a4f78bf19b
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Reference in a new issue