From 6c95ecbb6950f01312133967526cf0ddfa3e1958 Mon Sep 17 00:00:00 2001 From: yuki Date: Thu, 9 Oct 2025 05:30:58 -0300 Subject: [PATCH] add character limit to posts --- commands/admin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/admin.py b/commands/admin.py index 69c733b..9b1a5ab 100644 --- a/commands/admin.py +++ b/commands/admin.py @@ -34,6 +34,10 @@ def setup(bot: bot.Bot): await ctx.send(u.error_msg("Contents are empty.")) return + if len(" ".join(text)) > 500: + await ctx.send(u.error_msg(f"Post is too long!! ({len(" ".join(text))})")) + return + try: await ctx.send(f"Creating post:\n```markdown\n{" ".join(text)}\n```")