aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-10-07 15:26:58 +0200
committerGravatar GitHub <[email protected]>2020-10-07 15:26:58 +0200
commitc56cf1e7a119ca1fb4d0b2c23e99614b500d68a6 (patch)
treeb2bb94f9b1a98835c2d0bd025ca94ef2abb0fdee /bot/exts
parentMerge pull request #471 from ChrisGallardo/save_the_planet (diff)
parentUse 3 dots for ellipsis (diff)
PR #488: Limit hacktober issue body size
Diffstat (limited to 'bot/exts')
-rw-r--r--bot/exts/halloween/hacktober-issue-finder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/halloween/hacktober-issue-finder.py b/bot/exts/halloween/hacktober-issue-finder.py
index 78acf391..9deadde9 100644
--- a/bot/exts/halloween/hacktober-issue-finder.py
+++ b/bot/exts/halloween/hacktober-issue-finder.py
@@ -103,7 +103,7 @@ class HacktoberIssues(commands.Cog):
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
embed.add_field(name="labels", value="\n".join(labels))
embed.url = issue_url
embed.set_footer(text=issue_url)