diff options
| author | 2023-03-25 14:22:39 +0100 | |
|---|---|---|
| committer | 2023-03-25 14:22:39 +0100 | |
| commit | 4af76d0af54de790bf0b6289754617decbef33f6 (patch) | |
| tree | c0c05e613da17e911bf154a88a6f6f850f311340 | |
| parent | get rid of site config variable (diff) | |
rename schema to scheme
Diffstat (limited to '')
| -rw-r--r-- | bot/__main__.py | 2 | ||||
| -rw-r--r-- | bot/constants.py | 2 | ||||
| -rw-r--r-- | bot/exts/utils/ping.py | 2 | 
3 files changed, 3 insertions, 3 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index c8843e1a3..003cbbcda 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -66,7 +66,7 @@ async def main() -> None:              intents=intents,              allowed_roles=list({discord.Object(id_) for id_ in constants.MODERATION_ROLES}),              api_client=APIClient( -                site_api_url=f"{constants.URLs.site_api_schema}{constants.URLs.site_api}", +                site_api_url=f"{constants.URLs.site_api_scheme}{constants.URLs.site_api}",                  site_api_token=constants.Keys.site_api,              ),          ) diff --git a/bot/constants.py b/bot/constants.py index d9e0b755c..67c21816a 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -528,7 +528,7 @@ class _BaseURLs(EnvConfig):      # Site      site_api = "site.default.svc.cluster.local/api" -    site_api_schema = "http://" +    site_api_scheme = "http://"      site_paste = "https://paste.pythondiscord.com" diff --git a/bot/exts/utils/ping.py b/bot/exts/utils/ping.py index 67a960365..20e956e03 100644 --- a/bot/exts/utils/ping.py +++ b/bot/exts/utils/ping.py @@ -38,7 +38,7 @@ class Latency(commands.Cog):              bot_ping = f"{bot_ping:.{ROUND_LATENCY}f} ms"          try: -            async with self.bot.http_session.get(f"{URLs.site_api_schema}{URLs.site_api}/healthcheck") as request: +            async with self.bot.http_session.get(f"{URLs.site_api_scheme}{URLs.site_api}/healthcheck") as request:                  request.raise_for_status()                  site_status = "Healthy"  |