rebase latest master
This commit is contained in:
parent
5bc2c520ea
commit
56a1b06d28
|
@ -597,7 +597,7 @@ class DraftPlayerCommand(Command):
|
||||||
class StartDraftCommand(Command):
|
class StartDraftCommand(Command):
|
||||||
name = "startdraft"
|
name = "startdraft"
|
||||||
template = "m;startdraft [mention] [teamname] [slogan]"
|
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).
|
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.
|
- 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.
|
- 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:
|
try:
|
||||||
draft_message = await self.wait_draft(msg.channel, draft)
|
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:
|
except SlowDraftError:
|
||||||
player = random.choice(draft.get_draftees())
|
player = random.choice(draft.get_draftees())
|
||||||
await msg.channel.send(f"I'm not waiting forever. You get {player}. Next")
|
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]
|
team = teams[0]
|
||||||
return team
|
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"])
|
client.run(config()["token"])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user