Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
Slightly better team formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
veryhappythings committed Aug 20, 2016
1 parent eab4289 commit 0f70bcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gather/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ async def game_status(bot, channel, author, message):


def format_team(players):
return str({str(p) for p in players})
return ', '.join(str(p) for p in players)


async def add(bot, channel, author, message):
"""
Expand Down
4 changes: 2 additions & 2 deletions test/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def test_help(self):

def test_format_team(self):
self.assertEqual(
"{'TestPlayer', 'TestPlayer2'}",
commands.format_team(['TestPlayer', 'TestPlayer2'])
"TestPlayer, TestPlayer2, TestPlayer3",
commands.format_team(['TestPlayer', 'TestPlayer2', 'TestPlayer3'])
)


Expand Down

0 comments on commit 0f70bcf

Please sign in to comment.