From 6b433970fe38d7eda6b9482a9e02021d4cad7473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20G?= Date: Mon, 24 Aug 2020 11:59:01 -0400 Subject: [PATCH] New URL of Discord for ping --- cogs/basics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/basics.py b/cogs/basics.py index 461baaa..2534219 100755 --- a/cogs/basics.py +++ b/cogs/basics.py @@ -15,7 +15,7 @@ class Basics(commands.Cog): @commands.command() async def ping(self, ctx): - ping_res = str(subprocess.Popen(["/bin/ping", "-c1", "discordapp.com"], + ping_res = str(subprocess.Popen(["/bin/ping", "-c1", "discord.com"], stdout=subprocess.PIPE).stdout.read()) formated_res = [item for item in ping_res.split() if 'time=' in item] result = self.bot.latency * 1000 # str(formated_res[0])[5:]