New URL of Discord for ping
This commit is contained in:
parent
032a49b08f
commit
6b433970fe
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class Basics(commands.Cog):
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def ping(self, ctx):
|
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())
|
stdout=subprocess.PIPE).stdout.read())
|
||||||
formated_res = [item for item in ping_res.split() if 'time=' in item]
|
formated_res = [item for item in ping_res.split() if 'time=' in item]
|
||||||
result = self.bot.latency * 1000 # str(formated_res[0])[5:]
|
result = self.bot.latency * 1000 # str(formated_res[0])[5:]
|
||||||
|
|
Loading…
Reference in a new issue