1
0
Fork 0
mirror of synced 2024-06-28 03:00:55 +12:00

Changed when to title and replace _, as it was affecting more than I wanted

This commit is contained in:
Phxntxm 2016-08-08 16:46:02 -05:00
parent 3ebe96ef43
commit 125eb1895c

View file

@ -54,12 +54,12 @@ class Picarto:
data = json.loads(response)
things_to_print = ['channel','commissions_enabled','is_nsfw','program','tablet','followers','content_type']
fmt = "\n".join("{}: {}".format(i, r) for i,r in data.items() if i in things_to_print)
fmt = "\n".join("{}: {}".format(i.title().replace("_", " "), r) for i,r in data.items() if i in things_to_print)
social_links = data.get('social_urls')
if social_links:
fmt2 = "\n".join("\t{}: {}".format(i, r) for i,r in social_links.items())
fmt2 = "\n".join("\t{}: {}".format(i.title().replace("_", " "), r) for i,r in social_links.items())
fmt = "{}\nSocial Links:\n{}".format(fmt, fmt2)
await self.bot.say("Picarto stats for {}: ```\n{}```".format(member.display_name, fmt.title().replace("_", " ")))
await self.bot.say("Picarto stats for {}: ```\n{}```".format(member.display_name, fmt))
@picarto.command(name='add', pass_context=True, no_pm=True)
@checks.customPermsOrRole(send_messages=True)