Merge pull request #74 from classabbyamp/info

show bot's profile picture in info command, and make qrz images thumbnails
This commit is contained in:
Abigail Gold 2019-11-11 21:21:15 -05:00 committed by GitHub
commit 80c406b6f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ class BaseCog(commands.Cog):
timestamp=datetime.utcnow())
embed.set_footer(text=ctx.author.name,
icon_url=str(ctx.author.avatar_url))
embed.set_thumbnail(url=str(self.bot.user.avatar_url))
embed = embed.add_field(name="Authors", value=", ".join(self.gs.info.authors))
embed = embed.add_field(name="Contributing", value=self.gs.info.contributing)
embed = embed.add_field(name="License", value=self.gs.info.license)

View File

@ -71,7 +71,7 @@ class QRZCog(commands.Cog):
embed.set_footer(text=ctx.author.name,
icon_url=str(ctx.author.avatar_url))
if 'image' in resp_data:
embed.set_image(url=resp_data['image'])
embed.set_thumbnail(url=resp_data['image'])
data = qrz_process_info(resp_data)