Update status.py

This commit is contained in:
Xtao_dada 2021-05-29 03:27:51 +08:00 committed by GitHub
parent 6dca06a54a
commit 11ed9c9a98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,9 @@ async def speedtest(context):
result = test.results.dict() result = test.results.dict()
des = ( des = (
f"**Speedtest** \n" f"**Speedtest** \n"
f"Server: `{result['server']['name']}` \n" f"Server: `{result['server']['name']} - "
f"{result['server']['cc']}` \n"
f"Sponsor: `{result['server']['sponsor']}` \n"
f"Upload: `{unit_convert(result['upload'])}` \n" f"Upload: `{unit_convert(result['upload'])}` \n"
f"Download: `{unit_convert(result['download'])}` \n" f"Download: `{unit_convert(result['download'])}` \n"
f"Latency: `{result['ping']}` \n" f"Latency: `{result['ping']}` \n"