|
|
|
@ -236,4 +236,11 @@ class DiscordClient(discord.Client):
|
|
|
|
|
embed = discord.Embed(title=result['name'], url=result['url'],
|
|
|
|
|
description=result['description'], color=0xffd700)
|
|
|
|
|
embed.set_thumbnail(url=result['image'])
|
|
|
|
|
embed.set_image(url=result['image'])
|
|
|
|
|
for point in result['summary']:
|
|
|
|
|
try:
|
|
|
|
|
name, value = point.split(':')
|
|
|
|
|
except ValueError:
|
|
|
|
|
name, value = 'Base', point
|
|
|
|
|
embed.add_field(name=name.strip(), value=value.strip(), inline=True)
|
|
|
|
|
await self.send_message(message.channel, embed=embed)
|
|
|
|
|