Add thread creation to the match
This commit is contained in:
parent
142de9b3ca
commit
d3e1d01c9b
3 changed files with 42 additions and 20 deletions
|
@ -197,13 +197,3 @@ def members_to_groups(matchees: list[Member],
|
|||
# Simply assert false, this should never happen
|
||||
# And should be caught by tests
|
||||
assert False
|
||||
|
||||
|
||||
def group_to_message(group: list[Member]) -> str:
|
||||
"""Get the message to send for each group"""
|
||||
mentions = [m.mention for m in group]
|
||||
if len(group) > 1:
|
||||
mentions = f"{', '.join(mentions[:-1])} and {mentions[-1]}"
|
||||
else:
|
||||
mentions = mentions[0]
|
||||
return f"Matched up {mentions}!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue