Converted Google search to paginated embed

This commit is contained in:
Dustin Pianalto 2018-06-08 00:17:36 -08:00
parent 71cf7a44a7
commit f174b0cbfa

View File

@ -585,7 +585,7 @@ class Utils:
pag.set_embed_meta(title='Google Search', description=f'Top results for "{search}"', color=self.bot.embed_color)
# TODO Fix layout of Results
for result in results:
pag.add(f'\uFFF6{result["title"]}|{result["link"]}')
pag.add(f'\uFFF6{result["title"]} | {result["link"]}', keep_intact=True)
pag.add(f'{result["snippet"]}')
pag.add('\uFFF7\n\uFFF8')
msg = await ctx.send('Starting Book')