Skip to content

Commit

Permalink
Fix markdown lists
Browse files Browse the repository at this point in the history
Discord markdown lists cannot start with indentation otherwise it is
understood as nested lists.

> You can create a bulleted list using either (-) or (*) in the
> beginning of each line

https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline
  • Loading branch information
elliotgoodrich committed Feb 1, 2024
1 parent 499e9fd commit 293f6b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord_handler/discord_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def display_nomination(nomination):
if n.IMDbID is not None
else ""
)
return f" {position}. <@{n.DiscordUserID}> {n.FilmName} ({vote_count} vote{s}){imdb}"
return f"{position}. <@{n.DiscordUserID}> {n.FilmName} ({vote_count} vote{s}){imdb}"


def display_user(user):
return f" - <@{user.DiscordUserID}>"
return f"- <@{user.DiscordUserID}>"


def display_watched(f: Film):
Expand All @@ -87,7 +87,7 @@ def display_watched(f: Film):
if f.IMDbID is not None
else ""
)
return f" <t:{int(f.DateWatched.timestamp())}:d> {f.FilmName}{imdb} - <@{f.DiscordUserID}>"
return f"- <t:{int(f.DateWatched.timestamp())}:d> {f.FilmName}{imdb} - <@{f.DiscordUserID}>"


def naughty_message(filmbot):
Expand Down

0 comments on commit 293f6b4

Please sign in to comment.