mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-16 07:39:26 +00:00
ip fix #90
This commit is contained in:
parent
468a9c99a5
commit
4c67c8ea9e
@ -48,9 +48,11 @@ async def ipinfo(message: Message):
|
||||
url = url.hostname or url.path
|
||||
await message.edit(await get_ip_info(url))
|
||||
return
|
||||
else:
|
||||
url = urlparse(message.arguments)
|
||||
url = url.hostname or url.path
|
||||
elif message.arguments:
|
||||
url_ = urlparse(message.arguments)
|
||||
url = url_.hostname or url_.path
|
||||
if ":" in url and "." not in url and not url_.hostname:
|
||||
url = message.arguments
|
||||
await message.edit(await get_ip_info(url))
|
||||
return
|
||||
await message.edit('没有找到要查询的 ip/域名 ...')
|
||||
|
Loading…
Reference in New Issue
Block a user