diff options
author | 2021-03-08 19:21:16 +0200 | |
---|---|---|
committer | 2021-03-08 19:21:16 +0200 | |
commit | fa93d2fd8ed03fb991bf32573e67b49e89c56057 (patch) | |
tree | d2a6693af742cfacaaa1d37b52976ab245890da0 | |
parent | Don'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.py | 2 |
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}" |