安装方式
优先使用HTTP驱动器,如未配置则使用httpx请求
依赖管理
pip install nonebot-plugin-enatfrppoetry add nonebot-plugin-enatfrppdm add nonebot-plugin-enatfrp
在
bot.py中添加nonebot.load_plugin("nonebot_plugin_enatfrp")
nb-cli
nb plugin install nonebot-plugin-enatfrp
使用方式
- frp帮助
[index: int] - 开机
<id: int>[password: str = ] - 隧道状态
- 流量│流量历史
[id: int][type: week|月|day|日|周|month = day] - 流量包│流量套餐
<type: invalid|all|可用|不可用|全部|valid = all> - 我的信息│用户信息
- 公告
<index: int = 0> - 授权
<id: int> <ip: str> - 计算机列表
配置项
非必要配置项
# str
# natfrp api地址
natfrp_api=
# natfrp api token
natfrp_token=
# bool
# 是否at
natfrp_at=
# 是否回复
natfrp_reply=
# 是否使用nb配置的command_start
natfrp_use_start=
# 是否使用nb配置的command_sep
# 以下是命令文本 List[str]
natfrp_use_sep=
# frp帮助
natfrp_cmd_help=
# 开机
natfrp_cmd_powerOn=
# 隧道状态
natfrp_cmd_tunnels=
# 流量 流量历史
natfrp_cmd_trafficHistory=
# 流量包 流量套餐
natfrp_cmd_trafficPlans=
# 我的信息 用户信息
natfrp_cmd_userInfo=
# 公告
natfrp_cmd_announcement=
# 授权
natfrp_cmd_auth=
# 计算机列表
natfrp_cmd_showPCs=
依赖项
python = "^3.9"
nonebot2 = { version = ">=2.3.0", extras = ["httpx"] }
nonebot-plugin-alconna = ">=0.52.2"
Metadata
Release files for nonebot-plugin-enatfrp 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_plugin_enatfrp-0.3.0.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_enatfrp-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.8 kB
Release files / nonebot_plugin_enatfrp-0.3.0.tar.gz
| Download URL | nonebot_plugin_enatfrp-0.3.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
869a75e3f051213c8d734ef7be9c6ed23e3dd4e7070c2de4743f245c9b8bacef
|
|
BLAKE2b-256 checksum How to use checksums |
eca5c3de795d61dbbf732d3e7c4e0e62763ee30330d0863de5bbc1f3765b2c29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Release files / nonebot_plugin_enatfrp-0.3.0-py3-none-any.whl
| Download URL | nonebot_plugin_enatfrp-0.3.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64d6b5ac226ada304aa20407d86999c4685dffc7e27fd9508552b2bbf0f26fad
|
|
BLAKE2b-256 checksum How to use checksums |
c38519251de9689626dab9b49c3c493ff306a05cb4ee5c82a11d19c49f40abe8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
|