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```")