Fix issue in joke that duplicated text
This commit is contained in:
parent
ea822e5217
commit
348140d96a
1 changed files with 1 additions and 5 deletions
|
@ -54,7 +54,7 @@ class JokeCog(commands.Cog):
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
)[0]
|
)[0]
|
||||||
# TODO: Build a custom embed to show the joke
|
|
||||||
if result is None:
|
if result is None:
|
||||||
await ctx.send("Humor module failed. Please try again later.")
|
await ctx.send("Humor module failed. Please try again later.")
|
||||||
return
|
return
|
||||||
|
@ -82,10 +82,6 @@ class JokeCog(commands.Cog):
|
||||||
else:
|
else:
|
||||||
body += " " + word
|
body += " " + word
|
||||||
|
|
||||||
for chunk in result["body"].split("\n"):
|
|
||||||
if len(chunk) > 0:
|
|
||||||
body_chunks.append(Field("", chunk, False))
|
|
||||||
|
|
||||||
fields = body_chunks + [
|
fields = body_chunks + [
|
||||||
Field("Score", result["score"]),
|
Field("Score", result["score"]),
|
||||||
# Field(
|
# Field(
|
||||||
|
|
Loading…
Add table
Reference in a new issue