v1.0.0 #15

Merged
profitroll merged 53 commits from dev into main 2025-05-06 21:34:32 +03:00
Showing only changes of commit 3e9edf91d5 - Show all commits

View File

@@ -68,13 +68,20 @@ class PycordBot(LibPycordBot):
# Process each event
for event in events:
guild: Guild = self.get_guild(event.guild_id)
pycord_guild: PycordGuild = await self.find_guild(guild)
if len(event.stage_ids) == 0:
# TODO Make a nice message for management
logger.error("Could not start the event %s: no event stages are defined.", event._id)
continue
guild: Guild = self.get_guild(event.guild_id)
pycord_guild: PycordGuild = await self.find_guild(guild)
await self.notify_admins(
guild,
pycord_guild,
f"Could not start the event **{event.name}**: no event stages are defined.",
)
continue
first_stage: PycordEventStage = await self.find_event_stage(event.stage_ids[0])
# Get list of participants