88import os
99from enum import Enum
1010
11- from pydantic import BaseModel
11+ from pydantic import BaseModel , computed_field
1212from pydantic_settings import BaseSettings
1313
1414
@@ -138,7 +138,7 @@ class _Roles(EnvConfig, env_prefix="roles_"):
138138 lovefest : int = 542431903886606399
139139 pyweek_announcements : int = 897568414044938310
140140 revival_of_code : int = 988801794668908655
141- legacy_help_channels_access : int = 1074780483776417964
141+ archived_channels_access : int = 1074780483776417964
142142
143143 contributors : int = 295488872404484098
144144 partners : int = 323426753857191936
@@ -322,7 +322,7 @@ class _DuckPond(EnvConfig, env_prefix="duck_pond_"):
322322
323323 threshold : int = 7
324324
325- channel_blacklist : tuple [int , ...] = (
325+ default_channel_blacklist : tuple [int , ...] = (
326326 Channels .announcements ,
327327 Channels .python_news ,
328328 Channels .python_events ,
@@ -336,6 +336,12 @@ class _DuckPond(EnvConfig, env_prefix="duck_pond_"):
336336 Channels .staff_info ,
337337 )
338338
339+ extra_channel_blacklist : tuple [int , ...] = tuple ()
340+
341+ @computed_field
342+ @property
343+ def channel_blacklist (self ) -> tuple [int , ...]:
344+ return self .default_channel_blacklist + self .extra_channel_blacklist
339345
340346DuckPond = _DuckPond ()
341347
@@ -379,7 +385,7 @@ class _VideoPermission(EnvConfig, env_prefix="video_permission_"):
379385
380386class _Redis (EnvConfig , env_prefix = "redis_" ):
381387
382- host : str = "redis.default .svc.cluster.local"
388+ host : str = "redis.databases .svc.cluster.local"
383389 password : str = ""
384390 port : int = 6379
385391 use_fakeredis : bool = False # If this is True, Bot will use fakeredis.aioredis
@@ -417,8 +423,8 @@ class _Metabase(EnvConfig, env_prefix="metabase_"):
417423
418424 username : str = ""
419425 password : str = ""
420- base_url : str = "http://metabase.default .svc.cluster.local"
421- public_url : str = "https://metabase.pythondiscord.com "
426+ base_url : str = "http://metabase.tooling .svc.cluster.local"
427+ public_url : str = "https://metabase.pydis.wtf "
422428 max_session_age : int = 20_160
423429
424430
@@ -428,7 +434,7 @@ class _Metabase(EnvConfig, env_prefix="metabase_"):
428434class _BaseURLs (EnvConfig , env_prefix = "urls_" ):
429435
430436 # Snekbox endpoints
431- snekbox_eval_api : str = "http://snekbox.default .svc.cluster.local/eval"
437+ snekbox_eval_api : str = "http://snekbox.snekbox .svc.cluster.local/eval"
432438
433439 # Discord API
434440 discord_api : str = "https://discordapp.com/api/v7/"
@@ -438,7 +444,7 @@ class _BaseURLs(EnvConfig, env_prefix="urls_"):
438444 github_bot_repo : str = "https://github.com/python-discord/bot"
439445
440446 # Site
441- site_api : str = "http://site.default .svc.cluster.local/api"
447+ site_api : str = "http://site.web .svc.cluster.local/api"
442448 paste_url : str = "https://paste.pythondiscord.com"
443449
444450
@@ -621,7 +627,7 @@ class _Keys(EnvConfig, env_prefix="api_keys_"):
621627 "Not likely." ,
622628 "No way, José." ,
623629 "Not in a million years." ,
624- "Fat chance ." ,
630+ "I would love to, but unfortunately... no ." ,
625631 "Certainly not." ,
626632 "NEGATORY." ,
627633 "Nuh-uh." ,
@@ -655,8 +661,9 @@ class _Keys(EnvConfig, env_prefix="api_keys_"):
655661 "In the future, don't do that." ,
656662 "That was a mistake." ,
657663 "You blew it." ,
658- "You're bad at computers." ,
659- "Are you trying to kill me?" ,
664+ "Application bot.exe will be closed." ,
665+ "Kernel Panic! *Kernel runs around in panic*" ,
666+ "Error 418. I am a teapot." ,
660667 "Noooooo!!" ,
661668 "I can't believe you've done this" ,
662669)
0 commit comments