Updated rare play and added /player pagination
This commit is contained in:
parent
504a33f8f7
commit
0155eb0631
@ -400,7 +400,15 @@ class Players(commands.Cog):
|
|||||||
for x in all_cards:
|
for x in all_cards:
|
||||||
all_embeds.extend(await get_card_embeds(x, include_stats=True))
|
all_embeds.extend(await get_card_embeds(x, include_stats=True))
|
||||||
logging.debug(f'embeds: {all_embeds}')
|
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.command(name='record', description='Display team record against AI teams')
|
||||||
@app_commands.checks.has_any_role(PD_PLAYERS_ROLE_NAME)
|
@app_commands.checks.has_any_role(PD_PLAYERS_ROLE_NAME)
|
||||||
|
|||||||
@ -163,17 +163,16 @@ OUTFIELD_X_CHART = {
|
|||||||
'no': 'Single, all runners advance 2 bases.'
|
'no': 'Single, all runners advance 2 bases.'
|
||||||
},
|
},
|
||||||
'do2': {
|
'do2': {
|
||||||
'rp': 'Batter doubles, runners advance 2 bases. The outfielder throws the ball to the shortstop who executes a '
|
'rp': 'Batter doubles, runners advance 2 bases. The outfielder throws the ball to the shortstop who executes '
|
||||||
'hidden ball trick! Runner on second is called out!',
|
'a hidden ball trick! Runner on second is tagged out!',
|
||||||
'e1': 'Double and error, batter to third, all runners score.',
|
'e1': 'Double and error, batter to third, all runners score.',
|
||||||
'e2': 'Double and error, batter to third, and 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!',
|
'e3': 'Double and error, batter and all runners score. Little league home run!',
|
||||||
'no': 'Double, all runners advance 2 bases.'
|
'no': 'Double, all runners advance 2 bases.'
|
||||||
},
|
},
|
||||||
'do3': {
|
'do3': {
|
||||||
'rp': 'Runner(s) on base: batter doubles and runners advance three bases as the outfielders collide!\n'
|
'rp': 'Batter doubles and runners advance three bases, but batter-runner is caught between second and third! '
|
||||||
'No runners: Batter doubles, but the play is appealed. The umps rule the batter missed first base so is '
|
'He is tagged out in the rundown.',
|
||||||
'out on the appeal!',
|
|
||||||
'e1': 'Double and error, batter to third, all runners score.',
|
'e1': 'Double and error, batter to third, all runners score.',
|
||||||
'e2': 'Double and error, batter and all runners score. Little league home run!',
|
'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!',
|
'e3': 'Double and error, batter and all runners score. Little league home run!',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user