pitcher fix
This commit is contained in:
parent
ba70ac4f31
commit
b17d3a3042
|
@ -45,6 +45,10 @@ class Draft:
|
|||
"""
|
||||
return self._active_participant.handle
|
||||
|
||||
@property
|
||||
def active_drafting_team(self):
|
||||
return self._active_participant.team.name
|
||||
|
||||
def add_participant(self, handle, team_name, slogan):
|
||||
"""
|
||||
A participant is someone participating in this draft. Initializes an empty team for them
|
||||
|
@ -106,7 +110,7 @@ class Draft:
|
|||
if self._round < DRAFT_ROUNDS:
|
||||
self._active_participant.team.add_lineup(games.player(json.dumps(player)))
|
||||
elif self._round == DRAFT_ROUNDS:
|
||||
self._active_participant.team.set_pitcher(games.player(json.dumps(player)))
|
||||
self._active_participant.team.add_pitcher(games.player(json.dumps(player)))
|
||||
|
||||
self.advance_draft()
|
||||
if self._active_participant == BOOKMARK:
|
||||
|
|
|
@ -636,9 +636,9 @@ top of the list with each mention, teamname, and slogan on a new line (shift+ent
|
|||
|
||||
draft.start_draft()
|
||||
while draft.round <= DRAFT_ROUNDS:
|
||||
choosing = 'pitcher' if draft.round == DRAFT_ROUNDS else 'hitter'
|
||||
choosing = '⚾️pitcher⚾️' if draft.round == DRAFT_ROUNDS else '🏏hitter🏏'
|
||||
await msg.channel.send(
|
||||
f'Round {draft.round}/{DRAFT_ROUNDS}: {draft.active_drafter}, choose a {choosing}.',
|
||||
f'Round {draft.round}/{DRAFT_ROUNDS}: {draft.active_drafter}, choose a {choosing} for {draft.active_drafting_team}.',
|
||||
embed=build_draft_embed(draft.get_draftees()),
|
||||
)
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue
Block a user