From 6abe5e9eeb2c95b6ab6b45d736bfbeb1b30d6117 Mon Sep 17 00:00:00 2001 From: cruel-efficiency <60464829+cruel-efficiency@users.noreply.github.com> Date: Tue, 20 Jun 2023 22:16:33 +0000 Subject: [PATCH] Show a windrun.io link for ability draft matches. This should come up whenever someone uses /lm and /match info. Would like an LGTM from @noxville, owner of windrun.io --- cogs/dotastats.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cogs/dotastats.py b/cogs/dotastats.py index 00e176b..4c7b993 100644 --- a/cogs/dotastats.py +++ b/cogs/dotastats.py @@ -514,7 +514,9 @@ async def player_match_stats(self, steamid, match, inter, description_intro=None lobby_type = "" description = (f"{winstatus} a {lobby_type}**{game_mode}** match as {hero_name} in {duration}. " - f"More info at [DotaBuff](https://www.dotabuff.com/matches/{match_id}), " + "More info at " + + (f"[Windrun](https://www.windrun.io/matches/{match_id}), " if game_mode == "Ability Draft" else "") + + f"[DotaBuff](https://www.dotabuff.com/matches/{match_id}), " f"[OpenDota](https://www.opendota.com/matches/{match_id}), or " f"[STRATZ](https://www.stratz.com/match/{match_id})") @@ -605,7 +607,9 @@ async def print_match_stats(self, inter, match): embed = disnake.Embed(color=self.embed_color) embed.description = (f"This {lobby_type}**{game_mode}** match ended in {duration} \n" - f"More info at [DotaBuff](https://www.dotabuff.com/matches/{match_id}), " + "More info at " + + (f"[Windrun](https://www.windrun.io/matches/{match_id}), " if game_mode == "Ability Draft" else "") + + f"[DotaBuff](https://www.dotabuff.com/matches/{match_id}), " f"[OpenDota](https://www.opendota.com/matches/{match_id}), or " f"[STRATZ](https://www.stratz.com/match/{match_id})")