From 5915c2cb11f8ac60a492f584b11a6af0f5488e18 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 13 Jul 2016 23:31:52 -0500 Subject: [PATCH] Moved the replacing of _ with ' ' for better functionality --- cogs/overwatch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/overwatch.py b/cogs/overwatch.py index 4fc187b..5f7edcc 100644 --- a/cogs/overwatch.py +++ b/cogs/overwatch.py @@ -58,14 +58,14 @@ class Overwatch: fmt += "\nWin Percentage: {}".format(g_stats['win_percentage']) except KeyError: pass - fmt += "\nTime Played: {}".format(g_stats['time_played']) - fmt += "\n".join("{}: {}".format(i.replace("_", " ").title(), r) for i, r in data['hero_stats'].items()) + fmt += "\nTime Played: {}\n".format(g_stats['time_played']) + fmt += "\n".join("{}: {}".format(i.title(), r) for i, r in data['hero_stats'].items()) #for i, r in data['hero_stats'].items(): #fmt += "\n{}: {}".format(i.replace("_", " ").title(), r) if hero == "": await self.bot.say("Overwatch stats for {}: ```py\n{}```".format(user.name, fmt)) else: - await self.bot.say("Overwatch stats for {} using the hero {}: ```py\n{}``` ".format(user.name, hero, fmt)) + await self.bot.say("Overwatch stats for {} using the hero {}: ```py\n{}``` ".format(user.name, hero, fmt.replace("_"," "))) @ow.command(pass_context=True, name="add") async def add(self, ctx, bt: str):