diff --git a/classes/pycord_bot.py b/classes/pycord_bot.py index 86bc9c5..5538ce2 100644 --- a/classes/pycord_bot.py +++ b/classes/pycord_bot.py @@ -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