Skip to content

Commit

Permalink
Fixed wrong category for events
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanAkkerman committed Aug 28, 2024
1 parent a5fe6bb commit 79ff13b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/cogs/loops/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, bot: commands.Bot) -> None:
self.bot = bot

if config["LOOPS"]["EVENTS"]["STOCKS"]["ENABLED"]:
self.forex_channel = None
self.stocks_channel = None
self.post_events.start()

if config["LOOPS"]["EVENTS"]["CRYPTO"]["ENABLED"]:
Expand All @@ -43,11 +43,11 @@ async def post_events(self):
----------
None
"""
if self.forex_channel is None:
self.forex_channel = await get_channel(
if self.stocks_channel is None:
self.stocks_channel = await get_channel(
self.bot,
config["LOOPS"]["EVENTS"]["CHANNEL"],
config["CATEGORIES"]["FOREX"],
config["CATEGORIES"]["STOCKS"],
)

df = await get_events()
Expand Down Expand Up @@ -101,8 +101,8 @@ async def post_events(self):
)

# Remove the previous message
await self.forex_channel.purge()
await self.forex_channel.send(embed=e)
await self.stocks_channel.purge()
await self.stocks_channel.send(embed=e)

async def get_crypto_calendar(self) -> pd.DataFrame:
"""
Expand Down

0 comments on commit 79ff13b

Please sign in to comment.