Moved the replacing of _ with ' ' for better functionality
This commit is contained in:
parent
499bc267d9
commit
5915c2cb11
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue