aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-02-10 02:13:42 +0000
committerGravatar GitHub <[email protected]>2021-02-10 02:13:42 +0000
commitbafa6a9dbf61ae30ef235537408f0b073a88dd19 (patch)
treeacb0bd99e18d6c6a1acfb1233fc35a59de300a26
parentMerge 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.py2
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: