Changed command output formatting
This commit is contained in:
parent
fe6d2514c7
commit
a82adc4d1f
@ -45,9 +45,9 @@ async def cmd_nearby(app: Client, msg: Message):
|
|||||||
user = col_users.find_one( {"user": entry["user"]} )
|
user = col_users.find_one( {"user": entry["user"]} )
|
||||||
if user is not None:
|
if user is not None:
|
||||||
if user["tg_username"] not in [None, "None", ""]: # Check if user has any name
|
if user["tg_username"] not in [None, "None", ""]: # Check if user has any name
|
||||||
output.append(f'• {user["tg_name"]} (@{user["tg_username"]}):\n {entry["application"]["3"]["name"]}, {entry["application"]["3"]["adminName1"]}')
|
output.append(f'• **{user["tg_name"]}** (@{user["tg_username"]}):\n - {entry["application"]["3"]["name"]}, {entry["application"]["3"]["adminName1"]}')
|
||||||
else:
|
else:
|
||||||
output.append(f'• {user["tg_name"]}:\n {entry["application"]["3"]["name"]}, {entry["application"]["3"]["adminName1"]}')
|
output.append(f'• **{user["tg_name"]}**:\n - {entry["application"]["3"]["name"]}, {entry["application"]["3"]["adminName1"]}')
|
||||||
|
|
||||||
logWrite(f"{holo_user.id} tried to find someone nearby {location[1]} {location[0]} in the radius of {configGet('search_radius')} kilometers")
|
logWrite(f"{holo_user.id} tried to find someone nearby {location[1]} {location[0]} in the radius of {configGet('search_radius')} kilometers")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user