Skip to content

Commit

Permalink
Merge two comments into one
Browse files Browse the repository at this point in the history
Co-authored-by: Xithrius <15021300+Xithrius@users.noreply.github.com>
  • Loading branch information
dolphingarlic and Xithrius committed Apr 27, 2021
1 parent 1777002 commit 3fa889a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bot/exts/info/code_snippets.py
Expand Up @@ -231,8 +231,7 @@ async def on_message(self, message: Message) -> None:
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:
Expand Down

0 comments on commit 3fa889a

Please sign in to comment.