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
2023-07-15 16:15:28 +08:00

11 lines
409 B
Python

from modules.ip import check_ip
from .utils import to_json_func, AkariTool
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. ONLY INVOKE THIS WHEN YOU WANT INFO ABOUT IP ADDRESS, otherwise, use search.'
)