@@ -255,7 +255,6 @@ async def update_player(self, player: FaceitPlayer, new_level: int, new_elo: int
255
255
member_name = f" ({ member .name } )"
256
256
257
257
description = []
258
- match_url = None
259
258
260
259
last_match = get_faceit_last_match (self .key , data ["player_id" ])
261
260
if last_match :
@@ -266,7 +265,7 @@ async def update_player(self, player: FaceitPlayer, new_level: int, new_elo: int
266
265
player_statistics = get_player_statistics (last_match_statistics , player .nickname )
267
266
result = format_result (last_match_statistics , get_won (last_match , player .nickname ))
268
267
description .append (
269
- f"{ player .nickname } { result } on { match_map } "
268
+ f"{ player .nickname } [ { result } on { match_map } ]( { match_url } ) "
270
269
f" with a K/D of { player_statistics .kad } ({ player_statistics .kd } , { player_statistics .kpr } KPR)"
271
270
f" and { player_statistics .hsp } % HS."
272
271
)
@@ -289,8 +288,6 @@ async def update_player(self, player: FaceitPlayer, new_level: int, new_elo: int
289
288
embed .add_field (name = "Previous" , value = str (round (player .elo , 1 )), inline = True )
290
289
embed .add_field (name = "Current" , value = str (round (new_elo , 1 )), inline = True )
291
290
embed .add_field (name = "Change" , value = str (round (new_elo - player .elo , 1 )), inline = True )
292
- if match_url is not None :
293
- embed .add_field (name = "Match room" , value = match_url , inline = False )
294
291
295
292
await channel .send (embed = embed )
296
293
0 commit comments