Update admins.py
Updating current test command
This commit is contained in:
parent
d74d2b3ac5
commit
7a0a48c85c
@ -326,36 +326,25 @@ class Admins(commands.Cog):
|
||||
e_string = "\n- ".join(errors)
|
||||
await ctx.send(f'I encountered the following errors:\n\n{e_string}')
|
||||
|
||||
@app_commands.command(name='tc', description='Mod: Test command')
|
||||
@commands.command(name='tc', help='Mod: Test command')
|
||||
@commands.is_owner()
|
||||
async def test_choices_command(self, interaction: discord.Interaction):
|
||||
# await interaction.response.send_message(f'Let\'s test this function!')
|
||||
# pl = db_get('players/random', params=[
|
||||
# ('min_rarity', 5), ('max_rarity', 5), ('limit', 4)
|
||||
# ])
|
||||
# if pl['count']:
|
||||
# players = pl['players']
|
||||
# else:
|
||||
# raise ConnectionError(f'Could not create MVP pack')
|
||||
#
|
||||
# def p_callback(player):
|
||||
# db_get('players', object_id=player['player_id'])
|
||||
#
|
||||
# choice = await get_choice_from_cards(
|
||||
# interaction, players, callback=p_callback, temp_message='Hello!', conf_message='All done - great choice!'
|
||||
# )
|
||||
# await interaction.edit_original_response(content=f'The choice was: {choice}')
|
||||
async def test_choices_command(self, ctx):
|
||||
await ctx.send(f'Posting packs now...')
|
||||
|
||||
await interaction.response.defer()
|
||||
draft_team = db_get('teams', params=[('abbrev', f'Gauntlet-NCB')])
|
||||
await gauntlets.wipe_team(draft_team['teams'][0], interaction)
|
||||
|
||||
@commands.command(name='newseason', help='Update teams to new season')
|
||||
@commands.is_owner()
|
||||
async def new_season_command(self, ctx):
|
||||
await ctx.send(f'Sending team updates now...')
|
||||
db_post('teams/new-season/5', timeout=8)
|
||||
await ctx.send(f'All done!')
|
||||
db_post('packs/one', payload={
|
||||
'team_id': 31,
|
||||
'pack_type_id': 8
|
||||
})
|
||||
db_post('packs/one', payload={
|
||||
'team_id': 31,
|
||||
'pack_type_id': 3
|
||||
})
|
||||
db_post('packs/one', payload={
|
||||
'team_id': 31,
|
||||
'pack_type_id': 3,
|
||||
'pack_team_id': 3
|
||||
})
|
||||
await ctx.send(f'Posted the team choice pack')
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user