Fix weekly automation
This commit is contained in:
parent
ca3b1f56d5
commit
0035090ad9
@ -302,8 +302,8 @@ class Players(commands.Cog):
|
||||
logging.debug(f'Datetime: {now} / weekday: {now.weekday()}')
|
||||
|
||||
# Begin Freeze
|
||||
# if now.weekday() == 0 and now.hour == 5 and not current['freeze']: # Spring/Summer
|
||||
if now.weekday() == 0 and now.hour == 0 and not current['freeze']: # Fall/Winter
|
||||
# if now.weekday() == 0 and now.hour == 5: # Spring/Summer
|
||||
if now.weekday() == 0 and now.hour == 0: # Fall/Winter
|
||||
current['week'] += 1
|
||||
await db_patch('current', object_id=current['id'], params=[('week', current['week'])])
|
||||
|
||||
@ -313,7 +313,7 @@ class Players(commands.Cog):
|
||||
# await db_patch('current', object_id=current['id'], params=[('freeze', False)])
|
||||
|
||||
@weekly_loop.before_loop
|
||||
async def before_notif_check(self):
|
||||
async def before_weekly_check(self):
|
||||
await self.bot.wait_until_ready()
|
||||
|
||||
async def cog_command_error(self, ctx, error):
|
||||
@ -439,10 +439,9 @@ class Players(commands.Cog):
|
||||
@app_commands.checks.has_any_role(PD_PLAYERS_ROLE_NAME)
|
||||
async def player_slash_command(
|
||||
self, interaction: discord.Interaction, player_name: str,
|
||||
cardset: Literal['All', '2008 Season', '2012 Season', '2013 Season', '2016 Season', '2018 Season',
|
||||
'2019 Season', '2021 Season', '2022 Season', '2022 Promos', '2023 Season', '2023 Promos',
|
||||
'2024 Live', '2024 Promos','Backyard Baseball', 'Mario Super Sluggers',
|
||||
'Sams Choice'] = 'All'):
|
||||
cardset: Literal['All', '2024 Live', '2024 Promos', '2023 Season', '2023 Promos', '2022 Season',
|
||||
'2022 Promos', '2021 Season', '2019 Season', '2018 Season', '2018 Promos', '2016 Season', '2013 Season',
|
||||
'2012 Season', '2008 Season', 'Backyard Baseball', 'Mario Super Sluggers', 'Sams Choice'] = 'All'):
|
||||
# min_rarity: Literal['Replacement', 'Reserve', 'Starter', 'All-Star', 'MVP'] = None):
|
||||
ephemeral = False
|
||||
if interaction.channel.name in ['paper-dynasty-chat', 'pd-news-ticker']:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user