diff options
author | 2021-04-27 08:39:51 +0200 | |
---|---|---|
committer | 2021-04-27 08:39:51 +0200 | |
commit | 3fa889aaee4a4d901ce17a24dd6760a4fea88fd7 (patch) | |
tree | 34effbe5ba53eb4a8f8cc738ff776819f40be8c9 | |
parent | Sort 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.py | 3 |
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: |