Skip to main content

Nonebot2 Plugin Template

Project description

介绍

这是一个 nonebot2 插件, 用于TCP端口连通性测试工具,支持域名和IP地址测试

安装方法

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-tcping
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-tcping
pdm
pdm add nonebot-plugin-tcping
poetry
poetry add nonebot-plugin-tcping

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_tcping"]

...

使用方法

在.env.prod中添加 """ #tcping tcping_url = https://v2.api-m.com/api/tcping

#撤回消息的默认时间 recal_time=10 """

指令格式

  1. 发送指令 tcping <域名或IP地址> <端口号> 即可测试该端口是否连通
  2. 插件会返回测试结果, 如端口连通则返回 端口 <端口号> 连通, 否则返回 端口 <端口号> 不连通

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_tcping-1.1.1.tar.gz (4.2 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_tcping-1.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_tcping-1.1.1.tar.gz.

File metadata

  • Download URL: nonebot_plugin_tcping-1.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.6 Windows/11

File hashes

Hashes for nonebot_plugin_tcping-1.1.1.tar.gz
Algorithm Hash digest
SHA256 3e14655fe3ec8805c9b145b2860c5b3ed802774c394a5a52c1a82a3699dbc14a
MD5 be072fe33696cded5a2a9a931a3fbba8
BLAKE2b-256 92cefb56243e6c1ff3fc7d3e60b2263e99f67a489e58679031bd9c5dd241cca1

See more details on using hashes here.

File details

Details for the file nonebot_plugin_tcping-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_tcping-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d236cd7afb40bfe3ba2a9fd79f58d59b8b882b5516601896abac39a0e63ea48
MD5 289ab58e1d996297d9990ea7d4d1afa9
BLAKE2b-256 f364ee07de2a1c1485aab8e55ecc47b29c811afa41f344ee315d07675c20bc2a

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