diff options
author | 2021-02-10 02:13:42 +0000 | |
---|---|---|
committer | 2021-02-10 02:13:42 +0000 | |
commit | bafa6a9dbf61ae30ef235537408f0b073a88dd19 (patch) | |
tree | acb0bd99e18d6c6a1acfb1233fc35a59de300a26 | |
parent | Merge pull request #1411 from python-discord/internal-api-routing (diff) |
ICMP is disabled in production, so we can't ping the API
-rw-r--r-- | bot/exts/utils/ping.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/ping.py b/bot/exts/utils/ping.py index e62811b91..572fc934b 100644 --- a/bot/exts/utils/ping.py +++ b/bot/exts/utils/ping.py @@ -37,7 +37,7 @@ class Latency(commands.Cog): bot_ping = f"{bot_ping:.{ROUND_LATENCY}f} ms" try: - delay = await aioping.ping(URLs.site_api, family=socket.AddressFamily.AF_INET) * 1000 + delay = await aioping.ping(URLs.site, family=socket.AddressFamily.AF_INET) * 1000 site_ping = f"{delay:.{ROUND_LATENCY}f} ms" except TimeoutError: |