Error fixes and career sheet link

This commit is contained in:
Cal Corum 2024-07-26 16:54:41 -05:00
parent 1a8f758e84
commit e7d73470d1
2 changed files with 8 additions and 6 deletions

View File

@ -489,8 +489,6 @@ class Dice(commands.Cog):
error_note = None
error_note1 = None
error_note2 = None
symbol_link = 'https://docs.google.com/document/d/1wu63XSgfQE2wadiegWaaDda11QvqkN0liRurKm0vcTs/edit' \
'#heading=h.7oj0v3t1kc6o'
if args:
if args[0][:2].upper() in ['1B', '2B', '3B', 'SS']:
@ -788,7 +786,7 @@ class Dice(commands.Cog):
# f'**SI2**: {OUTFIELD_X_CHART["si2"]["rp"]}\n'
elif error_dice == 4:
error_note = '2-base error for e72\n' \
'1-base error for e14, e19, e20, e24, e25, e31, e80'
'1-base error for e14, e19, e20, e24, e25, e30, e31, e80'
elif error_dice == 3:
error_note = '2-base error for e10, e12, e28 -> e32, e48, e84\n' \
'1-base error for e2, e5, e7, e23, e27'
@ -1401,7 +1399,7 @@ class Dice(commands.Cog):
elif error_dice == 17:
error_note = '2-base error for e13 -> e28, e44 -> e50'
elif error_dice == 16:
error_note = '2-base error for e34 -> e48, e50, e51\n' \
error_note = '2-base error for e30 -> e48, e50, e51\n' \
'1-base error for e8, e11, e16, e23'
elif error_dice == 15:
error_note = '2-base error for e50, e51\n' \
@ -1452,8 +1450,10 @@ class Dice(commands.Cog):
# chart_embed.add_field(name='Range Chart', value=x_chart, inline=False)
# chart_embed.add_field(name='Error Chart', value=error_chart, inline=False)
# chart_embed.add_field(name='Result Reference', value=symbol_link, inline=False)
symbol_link = 'https://docs.google.com/document/d/1wu63XSgfQE2wadiegWaaDda11QvqkN0liRurKm0vcTs/edit' \
'#heading=h.7oj0v3t1kc6o'
reference_string = f'[Range Chart]({x_chart}) / [Error Chart]({error_chart}) / [Result Reference]({symbol_link})'
chart_embed.add_field(name='References', value=reference_string, inline=False)
embed.add_field(name='References', value=reference_string, inline=False)
drama_roll = random.randint(1, 20)
sixes = d_six_one + d_six_two + d_six_three

View File

@ -724,7 +724,9 @@ class Players(commands.Cog):
@commands.command(name='career', help='Get player\'s career stats')
async def career_command(self, ctx, *, name):
await ctx.send(f'That mother fucker Cal hasn\'t updated this command for the new API.')
await ctx.send(f'That mother fucker Cal hasn\'t updated this command for the new API. Go check out Josef\'s '
f'[sba-reference.com](https://docs.google.com/spreadsheets/d/1_dqBFeLPjRk-6hlVE29AmlL1jnsFJq'
f'xutySveFn4LJc/edit?usp=sharing) sheet in the meantime.')
await ctx.send(random_gif('god dammit'))
return