Fix issue in joke that duplicated text

This commit is contained in:
Zeva Rose 2021-07-03 18:25:04 -06:00
parent ea822e5217
commit 348140d96a

View file

@ -54,7 +54,7 @@ class JokeCog(commands.Cog):
]
)
)[0]
# TODO: Build a custom embed to show the joke
if result is None:
await ctx.send("Humor module failed. Please try again later.")
return
@ -82,10 +82,6 @@ class JokeCog(commands.Cog):
else:
body += " " + word
for chunk in result["body"].split("\n"):
if len(chunk) > 0:
body_chunks.append(Field("", chunk, False))
fields = body_chunks + [
Field("Score", result["score"]),
# Field(