aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Andi Qu <[email protected]>2021-04-27 12:56:35 +0200
committerGravatar GitHub <[email protected]>2021-04-27 12:56:35 +0200
commit42caf7fdfc7c5b7fc7a72039763d78a756bfdd44 (patch)
treeb99cd5b1cb209fd012e8cb34b141ff91cad9b966
parentMerge pull request #3 from python-discord/main (diff)
Fixed the line limit and halved the char limit
-rw-r--r--bot/exts/info/code_snippets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/code_snippets.py b/bot/exts/info/code_snippets.py
index c20115830..3f07e7193 100644
--- a/bot/exts/info/code_snippets.py
+++ b/bot/exts/info/code_snippets.py
@@ -234,7 +234,7 @@ class CodeSnippets(Cog):
# Sorts the list of snippets by their match index and joins them into a single message
message_to_send = '\n'.join(map(lambda x: x[1], sorted(all_snippets)))
- if 0 < len(message_to_send) <= 2000 and len(all_snippets) <= 15:
+ if 0 < len(message_to_send) <= 1000 and message_to_send.count('\n') <= 15:
await message.edit(suppress=True)
await wait_for_deletion(
await message.channel.send(message_to_send),