Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bot/exts/halloween/hacktober-issue-finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def format_embed(issue: Dict) -> discord.Embed:
labels = [label["name"] for label in issue["labels"]]

embed = discord.Embed(title=title)
embed.description = body
embed.description = body[:500] + '....' if len(body) > 500 else body
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m being very picky, but would it be possible to use only 3 dots here? That’s what we usually use.

Suggested change
embed.description = body[:500] + '....' if len(body) > 500 else body
embed.description = body[:500] + '...' if len(body) > 500 else body

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should just use textwrap.shorten instead.

embed.add_field(name="labels", value="\n".join(labels))
embed.url = issue_url
embed.set_footer(text=issue_url)
Expand Down