Name | nonebot-plugin-enatfrp JSON |
Version |
0.3.0
JSON |
| download |
home_page | None |
Summary | SakuraFrp管理插件 |
upload_time | 2024-09-03 10:52:20 |
maintainer | None |
docs_url | None |
author | eya46 |
requires_python | <4.0,>=3.9 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<p align="center">
<a href="https://nonebot.dev/"><img src="https://nonebot.dev/logo.png" width="200" height="200" alt="nonebot"></a>
</p>
<div align="center">
# NoneBot Plugin eNatFrp
# SakuraFrp管理插件
![License](https://img.shields.io/github/license/eya46/nonebot_plugin_enatfrp)
![Python](https://img.shields.io/badge/python-3.9+-blue.svg)
![NoneBot](https://img.shields.io/badge/nonebot-2.3.0+-red.svg)
</div>
## 安装方式
> 优先使用HTTP驱动器,如未配置则使用httpx请求
### 依赖管理
- `pip install nonebot-plugin-enatfrp`
- `poetry add nonebot-plugin-enatfrp`
- `pdm 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>`
- 计算机列表
## 配置项
### 非必要配置项
```dotenv
# 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=
```
## 依赖项
```toml
python = "^3.9"
nonebot2 = { version = ">=2.3.0", extras = ["httpx"] }
nonebot-plugin-alconna = ">=0.52.2"
```
Raw data
{
"_id": null,
"home_page": null,
"name": "nonebot-plugin-enatfrp",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "eya46",
"author_email": "61458340+eya46@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/ec/a5/c3de795d61dbbf732d3e7c4e0e62763ee30330d0863de5bbc1f3765b2c29/nonebot_plugin_enatfrp-0.3.0.tar.gz",
"platform": null,
"description": "<p align=\"center\">\n <a href=\"https://nonebot.dev/\"><img src=\"https://nonebot.dev/logo.png\" width=\"200\" height=\"200\" alt=\"nonebot\"></a>\n</p>\n\n<div align=\"center\">\n\n# NoneBot Plugin eNatFrp\n# SakuraFrp\u7ba1\u7406\u63d2\u4ef6\n\n![License](https://img.shields.io/github/license/eya46/nonebot_plugin_enatfrp)\n![Python](https://img.shields.io/badge/python-3.9+-blue.svg)\n![NoneBot](https://img.shields.io/badge/nonebot-2.3.0+-red.svg)\n</div>\n\n## \u5b89\u88c5\u65b9\u5f0f\n\n> \u4f18\u5148\u4f7f\u7528HTTP\u9a71\u52a8\u5668\uff0c\u5982\u672a\u914d\u7f6e\u5219\u4f7f\u7528httpx\u8bf7\u6c42\n\n### \u4f9d\u8d56\u7ba1\u7406\n\n- `pip install nonebot-plugin-enatfrp`\n- `poetry add nonebot-plugin-enatfrp`\n- `pdm add nonebot-plugin-enatfrp`\n\n> \u5728 `bot.py` \u4e2d\u6dfb\u52a0 `nonebot.load_plugin(\"nonebot_plugin_enatfrp\")`\n\n### nb-cli\n\n- `nb plugin install nonebot-plugin-enatfrp`\n\n## \u4f7f\u7528\u65b9\u5f0f\n\n- frp\u5e2e\u52a9 `[index: int]`\n- \u5f00\u673a `<id: int>` `[password: str = ]`\n- \u96a7\u9053\u72b6\u6001\n- \u6d41\u91cf\u2502\u6d41\u91cf\u5386\u53f2 `[id: int]` `[type: week|\u6708|day|\u65e5|\u5468|month = day]`\n- \u6d41\u91cf\u5305\u2502\u6d41\u91cf\u5957\u9910 `<type: invalid|all|\u53ef\u7528|\u4e0d\u53ef\u7528|\u5168\u90e8|valid = all>`\n- \u6211\u7684\u4fe1\u606f\u2502\u7528\u6237\u4fe1\u606f\n- \u516c\u544a `<index: int = 0>`\n- \u6388\u6743 `<id: int> <ip: str>`\n- \u8ba1\u7b97\u673a\u5217\u8868\n\n## \u914d\u7f6e\u9879\n\n### \u975e\u5fc5\u8981\u914d\u7f6e\u9879\n\n```dotenv\n# str\n# natfrp api\u5730\u5740\nnatfrp_api=\n# natfrp api token\nnatfrp_token=\n\n# bool\n# \u662f\u5426at\nnatfrp_at=\n# \u662f\u5426\u56de\u590d\nnatfrp_reply=\n# \u662f\u5426\u4f7f\u7528nb\u914d\u7f6e\u7684command_start\nnatfrp_use_start=\n# \u662f\u5426\u4f7f\u7528nb\u914d\u7f6e\u7684command_sep\n\n# \u4ee5\u4e0b\u662f\u547d\u4ee4\u6587\u672c List[str]\nnatfrp_use_sep=\n# frp\u5e2e\u52a9\nnatfrp_cmd_help=\n# \u5f00\u673a\nnatfrp_cmd_powerOn=\n# \u96a7\u9053\u72b6\u6001\nnatfrp_cmd_tunnels=\n# \u6d41\u91cf \u6d41\u91cf\u5386\u53f2\nnatfrp_cmd_trafficHistory=\n# \u6d41\u91cf\u5305 \u6d41\u91cf\u5957\u9910\nnatfrp_cmd_trafficPlans=\n# \u6211\u7684\u4fe1\u606f \u7528\u6237\u4fe1\u606f\nnatfrp_cmd_userInfo=\n# \u516c\u544a\nnatfrp_cmd_announcement=\n# \u6388\u6743\nnatfrp_cmd_auth=\n# \u8ba1\u7b97\u673a\u5217\u8868\nnatfrp_cmd_showPCs=\n```\n\n\n\n## \u4f9d\u8d56\u9879\n\n```toml\npython = \"^3.9\"\nnonebot2 = { version = \">=2.3.0\", extras = [\"httpx\"] }\nnonebot-plugin-alconna = \">=0.52.2\"\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "SakuraFrp\u7ba1\u7406\u63d2\u4ef6",
"version": "0.3.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c38519251de9689626dab9b49c3c493ff306a05cb4ee5c82a11d19c49f40abe8",
"md5": "584e90c9fe097bba229c585328f89347",
"sha256": "64d6b5ac226ada304aa20407d86999c4685dffc7e27fd9508552b2bbf0f26fad"
},
"downloads": -1,
"filename": "nonebot_plugin_enatfrp-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "584e90c9fe097bba229c585328f89347",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 9468,
"upload_time": "2024-09-03T10:52:19",
"upload_time_iso_8601": "2024-09-03T10:52:19.328751Z",
"url": "https://files.pythonhosted.org/packages/c3/85/19251de9689626dab9b49c3c493ff306a05cb4ee5c82a11d19c49f40abe8/nonebot_plugin_enatfrp-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "eca5c3de795d61dbbf732d3e7c4e0e62763ee30330d0863de5bbc1f3765b2c29",
"md5": "f4731a79d32544ff15b6c3ddc3f297cd",
"sha256": "869a75e3f051213c8d734ef7be9c6ed23e3dd4e7070c2de4743f245c9b8bacef"
},
"downloads": -1,
"filename": "nonebot_plugin_enatfrp-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "f4731a79d32544ff15b6c3ddc3f297cd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 8306,
"upload_time": "2024-09-03T10:52:20",
"upload_time_iso_8601": "2024-09-03T10:52:20.635173Z",
"url": "https://files.pythonhosted.org/packages/ec/a5/c3de795d61dbbf732d3e7c4e0e62763ee30330d0863de5bbc1f3765b2c29/nonebot_plugin_enatfrp-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-03 10:52:20",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "nonebot-plugin-enatfrp"
}