aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-03-08 19:21:16 +0200
committerGravatar GitHub <[email protected]>2021-03-08 19:21:16 +0200
commitfa93d2fd8ed03fb991bf32573e67b49e89c56057 (patch)
treed2a6693af742cfacaaa1d37b52976ab245890da0
parentDon't mention watching anymore in talent pool add message (diff)
Shorten reason of nomination string to 1000 characters
-rw-r--r--bot/exts/moderation/watchchannels/talentpool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/watchchannels/talentpool.py b/bot/exts/moderation/watchchannels/talentpool.py
index 737ee684d..49221002e 100644
--- a/bot/exts/moderation/watchchannels/talentpool.py
+++ b/bot/exts/moderation/watchchannels/talentpool.py
@@ -269,7 +269,7 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"):
actor_id = site_entry["actor"]
actor = guild.get_member(actor_id)
- reason = site_entry["reason"] or "*None*"
+ reason = textwrap.shorten(site_entry["reason"], 1000, placeholder="...") or "*None*"
created = time.format_infraction(site_entry["inserted_at"])
entries.append(
f"Actor: {actor.mention if actor else actor_id}\nCreated: {created}\nReason: {reason}"