Added social_urls to the list of things to print
This commit is contained in:
parent
906d31bdb3
commit
3ebe96ef43
1 changed files with 5 additions and 1 deletions
|
@ -55,7 +55,11 @@ class Picarto:
|
||||||
data = json.loads(response)
|
data = json.loads(response)
|
||||||
things_to_print = ['channel','commissions_enabled','is_nsfw','program','tablet','followers','content_type']
|
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, 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)
|
@picarto.command(name='add', pass_context=True, no_pm=True)
|
||||||
@checks.customPermsOrRole(send_messages=True)
|
@checks.customPermsOrRole(send_messages=True)
|
||||||
|
|
Loading…
Reference in a new issue