Merge pull request #3 from calcorum/fix-weekly-info-bug

Fix weekly info bug
This commit is contained in:
Cal Corum 2024-02-04 10:21:57 -06:00 committed by GitHub
commit ecdfaf4c68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -384,8 +384,6 @@ class Transactions(commands.Cog):
await self.process_freeze_moves(current)
await send_to_channel(self.bot, 'transaction-log', freeze_message)
self.trade_season = False
if current['week'] > 0 and current['week'] <= 18:
await self.post_weekly_info(current)
@weekly_loop.before_loop
async def before_notif_check(self):
@ -618,13 +616,11 @@ class Transactions(commands.Cog):
elif current['week'] > 14:
season_str = f'\U0001F342 **Fall**'
is_div_week = False
if current['week'] in [1, 3, 6, 14, 16, 18]:
is_div_week = True
is_div_week = current['week'] in [1, 3, 6, 14, 16, 18]
weekly_str = f'**Season**: {season_str}\n' \
f'**Time of Day**: {night_str} / {night_str if is_div_week else day_str} / ' \
f'{night_str} / {night_str if is_div_week else day_str}'
f'{night_str} / {day_str}'
await info_channel.send(
content=f'Each team has manage permissions in their home ballpark. They may pin messages and rename the '