Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/modules/ask/tools/ip_whois.py

12 lines
338 B
Python
Raw Normal View History

2023-04-08 04:25:48 +00:00
from modules.whois.ip import check_ip
2023-04-19 07:41:39 +00:00
from .utils import to_json_func, AkariTool
2023-04-08 04:25:48 +00:00
2023-06-20 07:29:56 +00:00
async def ip_whois(ip: str):
return await to_json_func(check_ip)(ip)
ip_whois_tool = AkariTool.from_function(
func=ip_whois,
description='A WHOIS tool for IP addresses. Useful for when you need to answer questions about IPv4/v6 addresses.'
2023-04-08 04:25:48 +00:00
)