Skip to content

Commit

Permalink
Merge pull request #47 from lesteenman/improve-managed-post-formatting
Browse files Browse the repository at this point in the history
Make some changes to the managed post formatting.
  • Loading branch information
lesteenman authored Apr 28, 2021
2 parents f1fb38a + d663d10 commit f356897
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions discord_app/eternal_guesses/util/message_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,12 @@ def game_post_embed(self, game: Game) -> discord.Embed:
guesses = "None yet!"
description = f"{description}{guesses}"

embed = discord.Embed(title=title, description=description, color=0x723EEA)

if game.closed:
footer = "Game closed."
embed.set_footer(text="Game closed.")
else:
footer = f"/guess game-id:{game.game_id} guess:<your guess>"

embed = discord.Embed(title=title, description=description, color=0x723EEA)
embed.set_footer(text=footer)
embed.add_field(name="Place your guess", value=f"/guess game-id:{game.game_id} guess:1234")

return embed

Expand Down

0 comments on commit f356897

Please sign in to comment.