1
0
Fork 0
mirror of synced 2024-05-28 00:09:39 +12:00

Moved the replacing of _ with ' ' for better functionality

This commit is contained in:
phxntxm 2016-07-13 23:31:52 -05:00
parent 499bc267d9
commit 5915c2cb11

View file

@ -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):