aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Quanta <[email protected]>2020-10-06 20:40:56 +0530
committerGravatar Quanta <[email protected]>2020-10-06 20:40:56 +0530
commit5f02c61a1a890df940eecbca70029b4b084d53dc (patch)
treefe896c519d50035bc0daf53c99841c3c3f88cf5e
parentMerge pull request #471 from ChrisGallardo/save_the_planet (diff)
Limit issue body to 500 characters
-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..4200ebf8 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)