Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions prod-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pretix_cache_file = "pretix_cache.json"
"Presenter" = ["Participants", "Onsite Participants", "Speakers"]
# onsite volunteers
"On-site Volunteer" = ["Participants", "Onsite Participants", "Volunteers", "Onsite Volunteers"]
# beginners' day
"Beginners’ Day Unconference / Humble Data Access" = ["Beginners Day"]

[registration.variation_to_roles]
# organizers
Expand Down
25 changes: 23 additions & 2 deletions scripts/configure-guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
YELLOW = "#FFD700"
PURPLE = "#D34EA5"
GREY = "#99AAB5"
DARK_PURPLE = "#658B34"

Permission = Literal[
"view_channel",
Expand Down Expand Up @@ -225,6 +226,7 @@ def verify_permission_roles(self) -> Self:
ROLE_SPONSORS = "Sponsors"
ROLE_PARTICIPANTS = "Participants"
ROLE_EVERYONE = "@everyone"
ROLE_BEGINNERS_DAY = "Beginners Day"

ROLES_COC = [ROLE_COC]
ROLES_MODERATORS = [ROLE_MODERATORS, *ROLES_COC]
Expand Down Expand Up @@ -290,15 +292,21 @@ def verify_permission_roles(self) -> Self:
mentionable=True,
),
Role(
name="Participants",
name=ROLE_PARTICIPANTS,
color=PURPLE,
hoist=True,
mentionable=True,
permissions=["use_external_emojis", "use_external_stickers", "create_polls"],
),
Role(name="Onsite Participants"),
Role(name="Remote Participants"),
Role(name="Programme Team"),
Role(
name=ROLE_BEGINNERS_DAY,
color=DARK_PURPLE,
mentionable=True,
permissions=["use_external_emojis", "use_external_stickers", "create_polls"],
),
Role(name="Programme Team", mentionable=True),
Role(
name="@everyone",
permissions=[
Expand Down Expand Up @@ -580,6 +588,19 @@ def verify_permission_roles(self) -> Self:
"(e.g., for groups working on a sub-project), that should be fine, too."
),
),
ForumChannel(
name="beginners-day",
topic=(
"Channel for the Beginners' Day: "
"https://ep2025.europython.eu/beginners-day/"
),
permission_overwrites=[
PermissionOverwrite(
roles=[ROLE_BEGINNERS_DAY],
allow=["view_channel"],
),
],
),
ForumChannel(
name="slides-and-artefacts",
topic="""
Expand Down
5 changes: 4 additions & 1 deletion src/europython_discord/registration/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ async def on_submit(self, interaction: discord.Interaction) -> None:
role_names.update(self.config.variation_to_roles[ticket.variation])

if not role_names:
await self.log_error_to_user(interaction, "No ticket found.")
await self.log_error_to_user(
interaction,
"No such conference ticket found. Did you use another ticket (e.g. Social Event)?",
)
await self.log_error_to_channel(interaction, f"Tickets without roles: {tickets}")
_logger.info(f"Tickets without role assignments: {tickets}")
return
Expand Down
2 changes: 2 additions & 0 deletions test-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pretix_cache_file = "pretix_cache.json"
"Presenter" = ["Participants", "Onsite Participants", "Speakers"]
# onsite volunteers
"On-site Volunteer" = ["Participants", "Onsite Participants", "Volunteers", "Onsite Volunteers"]
# beginners' day
"Beginners’ Day Unconference / Humble Data Access" = ["Beginners Day"]

[registration.variation_to_roles]
# organizers
Expand Down