aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Andi Qu <[email protected]>2021-04-27 08:39:51 +0200
committerGravatar GitHub <[email protected]>2021-04-27 08:39:51 +0200
commit3fa889aaee4a4d901ce17a24dd6760a4fea88fd7 (patch)
tree34effbe5ba53eb4a8f8cc738ff776819f40be8c9
parentSort snippet matches by their start position (diff)
Merge two comments into one
Co-authored-by: Xithrius <[email protected]>
-rw-r--r--bot/exts/info/code_snippets.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/info/code_snippets.py b/bot/exts/info/code_snippets.py
index b9e7cc3d0..c20115830 100644
--- a/bot/exts/info/code_snippets.py
+++ b/bot/exts/info/code_snippets.py
@@ -231,8 +231,7 @@ class CodeSnippets(Cog):
snippet = await handler(**match.groupdict())
all_snippets.append((match.start(), snippet))
- # Sorts the list of snippets by their match index and joins them into
- # a single message
+ # 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: