From 3ebe96ef433954823e528ce372f42d8676f80521 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Mon, 8 Aug 2016 16:44:58 -0500 Subject: [PATCH] Added social_urls to the list of things to print --- cogs/picarto.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cogs/picarto.py b/cogs/picarto.py index cff0532..dc38403 100644 --- a/cogs/picarto.py +++ b/cogs/picarto.py @@ -55,7 +55,11 @@ 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) - await self.bot.say("Picarto stats for {}: ```\n{}```".format(member.display_name, fmt)) + social_links = data.get('social_urls') + if social_links: + fmt2 = "\n".join("\t{}: {}".format(i, 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("_", " "))) @picarto.command(name='add', pass_context=True, no_pm=True) @checks.customPermsOrRole(send_messages=True)