mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-26 09:48:41 -05:00
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:
commit
80c406b6f8
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user