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

Added social_urls to the list of things to print

This commit is contained in:
Phxntxm 2016-08-08 16:44:58 -05:00
parent 906d31bdb3
commit 3ebe96ef43

View file

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