Skip to content

Commit 818adda

Browse files
committed
Separate generic server config model from EP server config
1 parent bb136a3 commit 818adda

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

scripts/configure-guild.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,6 @@
7474
AfterValidator(lambda text: textwrap.dedent(text.strip("\r\n").rstrip())),
7575
]
7676

77-
BLUE = "#0096C7"
78-
LIGHT_BLUE = "#8FD3E0"
79-
DARK_ORANGE = "#E6412C"
80-
ORANGE = "#E85D04"
81-
DARK_YELLOW = "#BC8C15"
82-
YELLOW = "#FFD700"
83-
PURPLE = "#D34EA5"
84-
GREY = "#99AAB5"
85-
DARK_PURPLE = "#658B34"
86-
8777
Permission = Literal[
8878
"add_reactions",
8979
"administrator",
@@ -243,6 +233,16 @@ def verify_permission_roles(self) -> Self:
243233
return self
244234

245235

236+
COLOR_BLUE = "#0096C7"
237+
COLOR_LIGHT_BLUE = "#8FD3E0"
238+
COLOR_DARK_ORANGE = "#E6412C"
239+
COLOR_ORANGE = "#E85D04"
240+
COLOR_DARK_YELLOW = "#BC8C15"
241+
COLOR_YELLOW = "#FFD700"
242+
COLOR_PURPLE = "#D34EA5"
243+
COLOR_GREY = "#99AAB5"
244+
COLOR_DARK_PURPLE = "#658B34"
245+
246246
ROLE_COC = "Code of Conduct Committee"
247247
ROLE_MODERATORS = "Moderators"
248248
ROLE_ORGANIZERS = "Organizers"
@@ -271,7 +271,7 @@ def verify_permission_roles(self) -> Self:
271271
roles=[
272272
Role(
273273
name=ROLE_COC,
274-
color=DARK_ORANGE,
274+
color=COLOR_DARK_ORANGE,
275275
hoist=True,
276276
mentionable=True,
277277
permissions=[
@@ -284,7 +284,7 @@ def verify_permission_roles(self) -> Self:
284284
),
285285
Role(
286286
name=ROLE_MODERATORS,
287-
color=ORANGE,
287+
color=COLOR_ORANGE,
288288
hoist=True,
289289
mentionable=True,
290290
permissions=[
@@ -299,48 +299,48 @@ def verify_permission_roles(self) -> Self:
299299
),
300300
Role(
301301
name=ROLE_ORGANIZERS,
302-
color=DARK_YELLOW,
302+
color=COLOR_DARK_YELLOW,
303303
permissions=["mention_everyone", "use_external_apps", "manage_roles"],
304304
),
305305
Role(
306306
name=ROLE_VOLUNTEERS,
307-
color=YELLOW,
307+
color=COLOR_YELLOW,
308308
hoist=True,
309309
mentionable=True,
310310
),
311-
Role(name="Onsite Volunteers", color=GREY),
312-
Role(name="Remote Volunteers", color=GREY),
311+
Role(name="Onsite Volunteers", color=COLOR_GREY),
312+
Role(name="Remote Volunteers", color=COLOR_GREY),
313313
Role(
314314
name=ROLE_SPEAKERS,
315-
color=BLUE,
315+
color=COLOR_BLUE,
316316
hoist=True,
317317
mentionable=True,
318318
),
319319
Role(
320320
name=ROLE_SPONSORS,
321-
color=LIGHT_BLUE,
321+
color=COLOR_LIGHT_BLUE,
322322
hoist=True,
323323
mentionable=True,
324324
),
325325
Role(
326326
name=ROLE_PARTICIPANTS,
327-
color=PURPLE,
327+
color=COLOR_PURPLE,
328328
hoist=True,
329329
mentionable=True,
330330
permissions=["use_external_emojis", "use_external_stickers", "create_polls"],
331331
),
332-
Role(name="Onsite Participants", color=GREY),
333-
Role(name="Remote Participants", color=GREY),
332+
Role(name="Onsite Participants", color=COLOR_GREY),
333+
Role(name="Remote Participants", color=COLOR_GREY),
334334
Role(
335335
name=ROLE_BEGINNERS_DAY,
336-
color=DARK_PURPLE,
336+
color=COLOR_DARK_PURPLE,
337337
mentionable=True,
338338
permissions=["use_external_emojis", "use_external_stickers", "create_polls"],
339339
),
340-
Role(name="Programme Team", color=GREY, mentionable=True),
340+
Role(name="Programme Team", color=COLOR_GREY, mentionable=True),
341341
Role(
342342
name="@everyone",
343-
color=GREY,
343+
color=COLOR_GREY,
344344
permissions=[
345345
"view_channel",
346346
"change_nickname",

0 commit comments

Comments
 (0)