Skip to content

Commit c847819

Browse files
committed
Add maximum line count
1 parent 573cb4a commit c847819

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

techsupport_bot/commands/correct.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ async def correct_command(
6262
)
6363
return
6464

65+
if updated_message.count("\n") > 15:
66+
await auxiliary.send_deny_embed(
67+
message="The corrected message has too many lines to send",
68+
channel=ctx.channel,
69+
)
70+
return
71+
6572
embed = auxiliary.generate_basic_embed(
6673
title="Correction!",
6774
description=f"{updated_message} :white_check_mark:",

0 commit comments

Comments
 (0)