S11 prep
This commit is contained in:
parent
9f157cadb3
commit
86eab613aa
@ -484,7 +484,8 @@ class Draft(commands.Cog):
|
||||
|
||||
return draft_string
|
||||
|
||||
@commands.command(name='select', aliases=['pick', 'draft', 'gib'], help='Draft a player')
|
||||
@commands.command(name='select', aliases=['pick', 'draft', 'gib', 'gimme', 'deliveruntomewhatismine', 'itsmyplayerandineedhimnow'], help='Draft a player')
|
||||
@commands.cooldown(1, 5, commands.BucketType.user)
|
||||
@commands.has_any_role(SBA_PLAYERS_ROLE_NAME)
|
||||
async def draft_command(self, ctx, *, name):
|
||||
cal_can_pick_for_all = True
|
||||
|
||||
@ -1918,11 +1918,11 @@ class Transactions(commands.Cog):
|
||||
|
||||
try:
|
||||
player_name = await fuzzy_player_search(ctx, ctx.channel, self.bot, x, player_cog.player_list.keys())
|
||||
player = await get_player_by_name(current['season'], player_name)
|
||||
except Exception as e:
|
||||
logger.error(f'Could not demote {x} for {team["abbrev"]}: {e}')
|
||||
errors.append(x)
|
||||
else:
|
||||
player = await get_player_by_name(current['season'], player_name)
|
||||
if player['team']['id'] != team['id']:
|
||||
await ctx.send(f'Omg stop trying to make {player["name"]} happen. It\'s not going to happen.')
|
||||
else:
|
||||
@ -1934,7 +1934,7 @@ class Transactions(commands.Cog):
|
||||
'oldteam_id': team['id'],
|
||||
'newteam_id': il_team['id'],
|
||||
'season': current['season'],
|
||||
'moveid': f'draft-tomil-{team["abbrev"]}'
|
||||
'moveid': f's{current["season"]}-draft-tomil-{team["abbrev"]}'
|
||||
})
|
||||
|
||||
if len(moves) == 0:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user