Skip to main content

NoneBot IP 信息查询插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-ipinfo

✨ 查询 IP 地址的信息 ✨

License PyPI Python
NoneBot Registry Supported Adapters

安装

使用nb-cli [推荐]

nb plugin install nonebot-plugin-ipinfo

使用pip

pip install nonebot-plugin-ipinfo

使用

命令需要加 NoneBot 命令前缀 (默认为/)
命令 ipinfo / ip 查询 IP 地址的信息
命令 domaininfo 查询域名的 WHOIS 信息
命令 getdomain 查询 IP 地址的托管域名
以上命令均支持使用 -v 命令选项输出详细的信息

配置项

配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可

ipinfo_access_token [必填]

  • 类型:str
  • 默认值:None
  • 说明:iPinfo 的 access_token

ipinfo_use_ip2location [选填]

  • 类型:bool
  • 默认值:False
  • 说明:是否使用 ip2location 作为数据源

ipinfo_ip2location_api_key [选填]

  • 类型:str
  • 默认值:None
  • 说明:ip2location 的 api_key

ipinfo_verbose_use_reference [选填]

  • 类型:bool
  • 默认值:False
  • 说明:-v 模式是否使用合并转发消息发送

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_ipinfo-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_ipinfo-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_ipinfo-0.1.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_ipinfo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 208eb5f45345c7cd76cb863c4788823df7701aca4c5fcc3109158294e7bdc76a
MD5 6a7c24d4ab6beb5d853f5fb0d6a72ead
BLAKE2b-256 d0847aebd3b044b07e076783c07d602a090f285857e2b0dc916652e173b53cbf

See more details on using hashes here.

File details

Details for the file nonebot_plugin_ipinfo-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_ipinfo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13c129d6a45f90576ebbbb3dba4486eec4f8baf3f0511bedb43660365d3c288c
MD5 ec437c297148372ca75c88a4f49a0624
BLAKE2b-256 03661be7d9b4ebdcdcea645e45e4a8a58766bfe612d562f5cdd634897cab1dce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page