Update gameplay.py
Added additional gamestate after flyball Bs
This commit is contained in:
parent
42c3719baf
commit
31d78f0315
@ -2988,9 +2988,16 @@ class Gameplay(commands.Cog):
|
||||
patch_play(this_play.id, locked=True)
|
||||
await self.flyballs(interaction, this_game, this_play, flyball_type)
|
||||
|
||||
await interaction.edit_original_response(
|
||||
content=None, embed=await self.get_game_state_embed(this_game, full_length=False)
|
||||
)
|
||||
if flyball_type not in ['a', 'c'] and this_play.on_base_code > 0:
|
||||
await interaction.edit_original_response(content=f'Flyball has been logged')
|
||||
await interaction.channel.send(
|
||||
content=None,
|
||||
embed=await self.get_game_state_embed(this_game, full_length=False)
|
||||
)
|
||||
else:
|
||||
await interaction.edit_original_response(
|
||||
content=None, embed=await self.get_game_state_embed(this_game, full_length=False)
|
||||
)
|
||||
|
||||
@group_log.command(name='groundball', description='Groundballs: a, b, c')
|
||||
async def log_groundball(self, interaction: discord.Interaction, groundball_type: Literal['a', 'b', 'c']):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user