CHANGE image encoding.

pull/3/head
kevincaires 3 years ago
parent 890214d268
commit 04fe912f35

@ -56,7 +56,7 @@ async def random_quote(bot: object) -> str:
try: try:
# To image links. # To image links.
if 'http' in chosen_one.quote: if 'http' in chosen_one.quote:
return await bot.send(f'{chosen_one.quote}') return await bot.send(f'{chosen_one.quote.encode("utf-8")}')
return await bot.send(f'{chosen_one.quote}\n`By: {chosen_one.user}`') return await bot.send(f'{chosen_one.quote}\n`By: {chosen_one.user}`')
except Exception as ex: except Exception as ex:

Loading…
Cancel
Save