FIX remove encoding to try on okteto.

pull/3/head
kevincaires 3 years ago
parent 04fe912f35
commit 70442353c0

@ -24,7 +24,6 @@ async def quote(bot: object, *quote: str) -> str:
quote = ' '.join(quote) quote = ' '.join(quote)
try: try:
quote = quote.encode('utf-8')
user = bot.author.name user = bot.author.name
set_quote(user, quote) set_quote(user, quote)
except Exception as ex: except Exception as ex:
@ -56,7 +55,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.encode("utf-8")}') return await bot.send(f'{chosen_one.quote}')
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