reformatting

This commit is contained in:
Rongrong 2021-08-09 16:18:44 +08:00
parent cec0e557cd
commit 234b5754e7
No known key found for this signature in database
GPG Key ID: A36C9CDA260CB264

View File

@ -69,7 +69,6 @@ def get_users(msg):
# Create mention string from user
def mention(user: Dict[str, str]) -> str:
# Combine name
last = user.get('last_name', '')
first = user['first_name']
@ -91,6 +90,7 @@ def parse_command(command):
result = {'predicate': markdownEscape(predicate), 'complement': markdownEscape(parsed[2]), 'swap': parsed[0] != '/'}
return result
def get_text(mention_from, mention_rpl, command):
if command['predicate'] == 'me':
return f"{mention_from}{bool(command['complement']) * ' '}{command['complement']}"