pitcher fix

This commit is contained in:
joe 2021-01-04 20:32:42 -08:00
parent ba70ac4f31
commit b17d3a3042
2 changed files with 7 additions and 3 deletions

View File

@ -45,6 +45,10 @@ class Draft:
""" """
return self._active_participant.handle 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): def add_participant(self, handle, team_name, slogan):
""" """
A participant is someone participating in this draft. Initializes an empty team for them 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: if self._round < DRAFT_ROUNDS:
self._active_participant.team.add_lineup(games.player(json.dumps(player))) self._active_participant.team.add_lineup(games.player(json.dumps(player)))
elif self._round == DRAFT_ROUNDS: 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() self.advance_draft()
if self._active_participant == BOOKMARK: if self._active_participant == BOOKMARK:

View File

@ -636,9 +636,9 @@ top of the list with each mention, teamname, and slogan on a new line (shift+ent
draft.start_draft() draft.start_draft()
while draft.round <= DRAFT_ROUNDS: 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( 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()), embed=build_draft_embed(draft.get_draftees()),
) )
try: try: