aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/clickup.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bot/cogs/clickup.py b/bot/cogs/clickup.py
index 03c1238f6..079678aa4 100644
--- a/bot/cogs/clickup.py
+++ b/bot/cogs/clickup.py
@@ -180,7 +180,12 @@ class ClickUp:
lines = [first_line]
if task.get("text_content"):
- lines.append(task["text_content"])
+ text = task["text_content"]
+
+ if len(text) >= 1500:
+ text = text[:1497] + "..."
+
+ lines.append(text)
if task.get("assignees"):
assignees = ", ".join(user["username"] for user in task["assignees"])