|
|
|
@ -501,6 +501,7 @@ class Utils:
|
|
|
|
em.title = f'Google Search'
|
|
|
|
em.title = f'Google Search'
|
|
|
|
em.description = f'Top 4 results for "{search}"'
|
|
|
|
em.description = f'Top 4 results for "{search}"'
|
|
|
|
em.colour = embed_color
|
|
|
|
em.colour = embed_color
|
|
|
|
|
|
|
|
# TODO Fix layout of Results
|
|
|
|
for result in results:
|
|
|
|
for result in results:
|
|
|
|
em.add_field(name=f'{result["title"]}', value=f'{result["snippet"]}\n{result["link"]}')
|
|
|
|
em.add_field(name=f'{result["title"]}', value=f'{result["snippet"]}\n{result["link"]}')
|
|
|
|
await ctx.send(embed=em)
|
|
|
|
await ctx.send(embed=em)
|
|
|
|
@ -530,6 +531,8 @@ class Utils:
|
|
|
|
value=f'Steam ID: {steam[i]}\nPatreon Level: {tier[i]}\nPatron of: {patron[i]}')
|
|
|
|
value=f'Steam ID: {steam[i]}\nPatreon Level: {tier[i]}\nPatron of: {patron[i]}')
|
|
|
|
await ctx.send(embed=em)
|
|
|
|
await ctx.send(embed=em)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO Create Help command
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def setup(bot):
|
|
|
|
def setup(bot):
|
|
|
|
bot.add_cog(Utils(bot))
|
|
|
|
bot.add_cog(Utils(bot))
|
|
|
|
|