From 56a1b06d28b223076465db75b828309b5ac72b8f Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 4 Jan 2021 15:54:28 -0800 Subject: [PATCH] rebase latest master --- the_prestige.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index 6f80414..654614d 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -597,7 +597,7 @@ class DraftPlayerCommand(Command): class StartDraftCommand(Command): name = "startdraft" template = "m;startdraft [mention] [teamname] [slogan]" - description = """Starts a draft with an arbitrary number of participants. Send this command at the + description = """Starts a draft with an arbitrary number of participants. Send this command at the top of the list with each mention, teamname, and slogan on a new line (shift+enter in discord). - The draft will proceed in the order that participants were entered. - 20 players will be available for draft at a time, and the pool will refresh automatically when it becomes small. @@ -636,7 +636,7 @@ top of the list with each mention, teamname, and slogan on a new line (shift+ent ) try: draft_message = await self.wait_draft(msg.channel, draft) - draft.draft_player(f'<@!{draft_message.author.id}>', draft_message.content.split(' ', 1)[1]) + draft.draft_player(f'<@!{draft_message.author.id}>', draft_message.content.split(' ', 1)[1]) except SlowDraftError: player = random.choice(draft.get_draftees()) await msg.channel.send(f"I'm not waiting forever. You get {player}. Next") @@ -1349,4 +1349,22 @@ def get_team_fuzzy_search(team_name): team = teams[0] return team +#test_bracket = { +# "Milwaukee Lockpicks" : {"wins": 4, "rd": 0}, +# "Madagascar Penguins" : {"wins": 2, "rd": 0}, +# "Twin Cities Evening" : {"wins": 1, "rd": 0}, +# "Washington State Houses" : {"wins": 9, "rd": 0}, +# "Appalachian Underground" : {"wins": 8, "rd": 0}, +# "Pacific2 Rams" : {"wins": 3, "rd": 0}, +# "New Jersey Radio" : {"wins": 11, "rd": 0}, +# "Moline Jolenes" : {"wins": 6, "rd": 0}, +# "California Commissioners" : {"wins": 10, "rd": 0}, +# "Pigeon’s Reckoning" : {"wins": 7, "rd": 0}, +# "Kernow Technologists" : {"wins": 5, "rd": 0} +# } +#tourney = leagues.tournament("Test Tourney", test_bracket, max_innings=3) +#tourney.build_bracket(by_wins=True) +#tourney.bracket.set_winners_dive(['Twin Cities Evening','Madagascar Penguins', 'Pacific2 Rams']) +#print(tourney.bracket.this_bracket) + client.run(config()["token"])