Fixed some event-related issues and guessing

This commit is contained in:
2025-04-28 01:51:43 +02:00
parent 679d026286
commit 22139aa486
4 changed files with 12 additions and 2 deletions

View File

@@ -72,6 +72,8 @@ class CogRegister(Cog):
)
if pycord_event.starts.replace(tzinfo=ZoneInfo("UTC")) < datetime.now(tz=ZoneInfo("UTC")):
await user.set_event(pycord_event._id, cache=self.bot.cache)
user_channel: TextChannel = await user.setup_event_channel(
self.bot, ctx.guild, guild, pycord_event, cache=self.bot.cache
)
@@ -106,6 +108,8 @@ class CogRegister(Cog):
first_stage: PycordEventStage = await self.bot.find_event_stage(pycord_event.stage_ids[0])
await user.set_event_stage(first_stage._id, cache=self.bot.cache)
first_stage_files: List[File] | None = first_stage.get_media_files()
await user_channel.send(f"First stage...\n\n{first_stage.question}", files=first_stage_files)