mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
ew async
This commit is contained in:
parent
ffca402149
commit
fcf3f42327
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class Events(commands.Cog):
|
||||||
from dns import asyncresolver
|
from dns import asyncresolver
|
||||||
import httpx
|
import httpx
|
||||||
response = await asyncresolver.resolve("shronkservz.tk", "A")
|
response = await asyncresolver.resolve("shronkservz.tk", "A")
|
||||||
ip_info_response = await httpx.get(f"http://ip-api.com/json/{response[0].address}")
|
ip_info_response = await httpx.AsyncClient().get(f"http://ip-api.com/json/{response[0].address}")
|
||||||
if ip_info_response.status_code == 200:
|
if ip_info_response.status_code == 200:
|
||||||
return await message.reply(
|
return await message.reply(
|
||||||
f"Scattylicious\N{pile of poo}\N{pile of poo}\n"
|
f"Scattylicious\N{pile of poo}\N{pile of poo}\n"
|
||||||
|
|
Loading…
Reference in a new issue