Updated rare play and added /player pagination

This commit is contained in:
Cal Corum 2023-10-16 16:33:18 -05:00
parent 504a33f8f7
commit 0155eb0631
2 changed files with 13 additions and 6 deletions

View File

@ -400,7 +400,15 @@ class Players(commands.Cog):
for x in all_cards:
all_embeds.extend(await get_card_embeds(x, include_stats=True))
logging.debug(f'embeds: {all_embeds}')
await interaction.edit_original_response(content=None, embeds=all_embeds)
await interaction.edit_original_response(content=f'# {all_players["players"][0]["p_name"]}')
await embed_pagination(
all_embeds,
interaction.channel,
interaction.user,
timeout=20,
start_page=0
)
@app_commands.command(name='record', description='Display team record against AI teams')
@app_commands.checks.has_any_role(PD_PLAYERS_ROLE_NAME)

View File

@ -163,17 +163,16 @@ OUTFIELD_X_CHART = {
'no': 'Single, all runners advance 2 bases.'
},
'do2': {
'rp': 'Batter doubles, runners advance 2 bases. The outfielder throws the ball to the shortstop who executes a '
'hidden ball trick! Runner on second is called out!',
'rp': 'Batter doubles, runners advance 2 bases. The outfielder throws the ball to the shortstop who executes '
'a hidden ball trick! Runner on second is tagged out!',
'e1': 'Double and error, batter to third, all runners score.',
'e2': 'Double and error, batter to third, and all runners score.',
'e3': 'Double and error, batter and all runners score. Little league home run!',
'no': 'Double, all runners advance 2 bases.'
},
'do3': {
'rp': 'Runner(s) on base: batter doubles and runners advance three bases as the outfielders collide!\n'
'No runners: Batter doubles, but the play is appealed. The umps rule the batter missed first base so is '
'out on the appeal!',
'rp': 'Batter doubles and runners advance three bases, but batter-runner is caught between second and third! '
'He is tagged out in the rundown.',
'e1': 'Double and error, batter to third, all runners score.',
'e2': 'Double and error, batter and all runners score. Little league home run!',
'e3': 'Double and error, batter and all runners score. Little league home run!',