nonebot-plugin-efthelper 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nonebot_plugin_efthelper-0.1.0/LICENSE +21 -0
- nonebot_plugin_efthelper-0.1.0/PKG-INFO +105 -0
- nonebot_plugin_efthelper-0.1.0/README.md +74 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/__init__.py +1195 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/api.py +668 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/assets/README.md +27 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/assets/bear.png +0 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/assets/usec.png +0 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/card.py +1112 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/circle.py +380 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/config.py +310 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/eftforge.py +177 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/endings.py +86 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/format.py +339 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/image.py +96 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/index.py +313 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper/registry.py +164 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper.egg-info/PKG-INFO +105 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper.egg-info/SOURCES.txt +22 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper.egg-info/dependency_links.txt +1 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper.egg-info/requires.txt +7 -0
- nonebot_plugin_efthelper-0.1.0/nonebot_plugin_efthelper.egg-info/top_level.txt +1 -0
- nonebot_plugin_efthelper-0.1.0/pyproject.toml +47 -0
- nonebot_plugin_efthelper-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Eastlight2008
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nonebot-plugin-efthelper
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: 查询《逃离塔科夫》服务器状态、玩家资料与邪教圈献祭推荐
|
|
5
|
+
Author-email: xL1gHTx <light@l1ght.xyz>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Eastlight2008/nonebot_plugin_efthelper
|
|
8
|
+
Project-URL: Repository, https://github.com/Eastlight2008/nonebot_plugin_efthelper
|
|
9
|
+
Project-URL: Issues, https://github.com/Eastlight2008/nonebot_plugin_efthelper
|
|
10
|
+
Keywords: nonebot,nonebot2,eft,tarkov,escape-from-tarkov,plugin
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Typing :: Typed
|
|
20
|
+
Requires-Python: >=3.9
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: nonebot2>=2.3.0
|
|
24
|
+
Requires-Dist: nonebot-adapter-onebot>=2.4.0
|
|
25
|
+
Requires-Dist: httpx>=0.27
|
|
26
|
+
Requires-Dist: pillow>=10.0
|
|
27
|
+
Requires-Dist: nonebot-plugin-localstore>=0.7.0
|
|
28
|
+
Requires-Dist: nonebot-plugin-apscheduler>=0.4.0
|
|
29
|
+
Requires-Dist: nonebot-plugin-waiter>=0.4.0
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# nonebot-plugin-efthelper
|
|
33
|
+
|
|
34
|
+
查询《逃离塔科夫》服务器状态、玩家资料,以及**邪教圈献祭推荐**。
|
|
35
|
+
|
|
36
|
+
> 数据来源:[tarkov.dev](https://tarkov.dev)(服务器状态、物品行情、玩家资料)
|
|
37
|
+
> 与 [eftforge](https://www.eftforge.com)(更实时的玩家档案与角色立绘)。
|
|
38
|
+
> 本项目与 Battlestate Games、tarkov.dev、eftforge 均无关联。
|
|
39
|
+
|
|
40
|
+
## 功能
|
|
41
|
+
|
|
42
|
+
| 命令 | 说明 |
|
|
43
|
+
|---|---|
|
|
44
|
+
| `/eftstatus` | 查看三个模式(PvP / PvP 赛季 / PvE)的服务器状态 |
|
|
45
|
+
| `/player <模式> <角色ID 或 昵称>` | 玩家资料卡片:等级、转生、结局、EXP、PMC/SCAV 战绩、成就 |
|
|
46
|
+
| `/eftcircle <模式> <件数>` | 邪教圈献祭推荐:按 14 小时档(≥350,001)算出最省钱的献祭组合 |
|
|
47
|
+
| `/eftreload [模式]` | 手动刷新昵称索引(仅超级用户) |
|
|
48
|
+
|
|
49
|
+
模式取值:`pvp`(正式服)、`pvps`(PvP 赛季)、`pve`。
|
|
50
|
+
|
|
51
|
+
### 邪教圈献祭推荐
|
|
52
|
+
|
|
53
|
+
目标阈值固定为 **350,001(14 小时档)**,件数取 1~5:
|
|
54
|
+
|
|
55
|
+
- 求解「恰好 N 件、基准价值合计 ≥ 阈值、总价最低」的组合,同一种物品可以重复;
|
|
56
|
+
- 未指定件数时,一次给出 1~5 件的全部方案,并框出**性价比最高**的那一档;
|
|
57
|
+
- 单件价格用 tarkov.dev 的 24 小时成交均价,并随件数递增 2% 的保守系数;
|
|
58
|
+
- 行情缓存 6 小时,启动后每 10 分钟后台预热一次。
|
|
59
|
+
|
|
60
|
+
## 安装
|
|
61
|
+
|
|
62
|
+
使用 NB-CLI:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
nb plugin install nonebot-plugin-efthelper
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
或在 `pyproject.toml` 的 `[tool.nonebot]` 里加入插件名。
|
|
69
|
+
|
|
70
|
+
插件需要 OneBot V11 适配器:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
nb adapter install nonebot-adapter-onebot
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## 配置
|
|
77
|
+
|
|
78
|
+
在 `.env` 中填写,全部可选:
|
|
79
|
+
|
|
80
|
+
| 配置项 | 默认值 | 说明 |
|
|
81
|
+
|---|---|---|
|
|
82
|
+
| `EFT_CACHE_DIR` | localstore 缓存目录 | 行情/缓存文件位置 |
|
|
83
|
+
| `EFT_HTTP_TIMEOUT` | `25.0` | HTTP 超时(秒) |
|
|
84
|
+
| `EFT_USER_AGENT` | `nonebot-plugin-efthelper` | 请求 UA(tarkov.dev 要求自定义 UA) |
|
|
85
|
+
| `EFT_CIRCLE_DEFAULT_THRESHOLD` | `350001` | 献祭阈值,14 小时档 |
|
|
86
|
+
| `EFT_CIRCLE_MAX_ITEMS` | `5` | 最多几件 |
|
|
87
|
+
| `EFT_CIRCLE_PRICE_FACTOR` | `1.0` | 买 1 件时的价格系数 |
|
|
88
|
+
| `EFT_CIRCLE_PRICE_FACTOR_STEP` | `0.02` | 每多一件追加的系数 |
|
|
89
|
+
| `EFT_CIRCLE_MAX_SAME_ITEM` | `0` | 同一件最多几份,0 = 不限 |
|
|
90
|
+
| `EFT_CIRCLE_CARD_ENABLED` | `true` | 是否发送卡片图 |
|
|
91
|
+
| `EFT_CIRCLE_WARM_ENABLED` | `true` | 是否后台预热行情 |
|
|
92
|
+
| `EFT_CIRCLE_WARM_INTERVAL_MINUTES` | `10.0` | 预热间隔(分钟) |
|
|
93
|
+
| `EFT_EFTFORGE_ENABLED` | `true` | 是否优先用 eftforge 取玩家档案 |
|
|
94
|
+
| `EFT_EFTFORGE_BASE` | `https://www.eftforge.com` | eftforge 地址 |
|
|
95
|
+
| `EFT_EFTFORGE_KEY` | 空 | eftforge 的 X-Atlas-Key(可选) |
|
|
96
|
+
| `EFT_EFTFORGE_ART_BRIGHTNESS` | `0.85` | 立绘压暗系数 |
|
|
97
|
+
|
|
98
|
+
## 效果
|
|
99
|
+
|
|
100
|
+
- 玩家卡片:左侧角色胸像、右侧昵称/等级/转生/结局/EXP 进度条、PMC 与 SCAV 双栏战绩、成就列表;
|
|
101
|
+
- 邪教圈卡片:按件数列出献祭组合、购买成本与节省额,金额统一卢布符号。
|
|
102
|
+
|
|
103
|
+
## 许可证
|
|
104
|
+
|
|
105
|
+
MIT
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# nonebot-plugin-efthelper
|
|
2
|
+
|
|
3
|
+
查询《逃离塔科夫》服务器状态、玩家资料,以及**邪教圈献祭推荐**。
|
|
4
|
+
|
|
5
|
+
> 数据来源:[tarkov.dev](https://tarkov.dev)(服务器状态、物品行情、玩家资料)
|
|
6
|
+
> 与 [eftforge](https://www.eftforge.com)(更实时的玩家档案与角色立绘)。
|
|
7
|
+
> 本项目与 Battlestate Games、tarkov.dev、eftforge 均无关联。
|
|
8
|
+
|
|
9
|
+
## 功能
|
|
10
|
+
|
|
11
|
+
| 命令 | 说明 |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `/eftstatus` | 查看三个模式(PvP / PvP 赛季 / PvE)的服务器状态 |
|
|
14
|
+
| `/player <模式> <角色ID 或 昵称>` | 玩家资料卡片:等级、转生、结局、EXP、PMC/SCAV 战绩、成就 |
|
|
15
|
+
| `/eftcircle <模式> <件数>` | 邪教圈献祭推荐:按 14 小时档(≥350,001)算出最省钱的献祭组合 |
|
|
16
|
+
| `/eftreload [模式]` | 手动刷新昵称索引(仅超级用户) |
|
|
17
|
+
|
|
18
|
+
模式取值:`pvp`(正式服)、`pvps`(PvP 赛季)、`pve`。
|
|
19
|
+
|
|
20
|
+
### 邪教圈献祭推荐
|
|
21
|
+
|
|
22
|
+
目标阈值固定为 **350,001(14 小时档)**,件数取 1~5:
|
|
23
|
+
|
|
24
|
+
- 求解「恰好 N 件、基准价值合计 ≥ 阈值、总价最低」的组合,同一种物品可以重复;
|
|
25
|
+
- 未指定件数时,一次给出 1~5 件的全部方案,并框出**性价比最高**的那一档;
|
|
26
|
+
- 单件价格用 tarkov.dev 的 24 小时成交均价,并随件数递增 2% 的保守系数;
|
|
27
|
+
- 行情缓存 6 小时,启动后每 10 分钟后台预热一次。
|
|
28
|
+
|
|
29
|
+
## 安装
|
|
30
|
+
|
|
31
|
+
使用 NB-CLI:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
nb plugin install nonebot-plugin-efthelper
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
或在 `pyproject.toml` 的 `[tool.nonebot]` 里加入插件名。
|
|
38
|
+
|
|
39
|
+
插件需要 OneBot V11 适配器:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
nb adapter install nonebot-adapter-onebot
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 配置
|
|
46
|
+
|
|
47
|
+
在 `.env` 中填写,全部可选:
|
|
48
|
+
|
|
49
|
+
| 配置项 | 默认值 | 说明 |
|
|
50
|
+
|---|---|---|
|
|
51
|
+
| `EFT_CACHE_DIR` | localstore 缓存目录 | 行情/缓存文件位置 |
|
|
52
|
+
| `EFT_HTTP_TIMEOUT` | `25.0` | HTTP 超时(秒) |
|
|
53
|
+
| `EFT_USER_AGENT` | `nonebot-plugin-efthelper` | 请求 UA(tarkov.dev 要求自定义 UA) |
|
|
54
|
+
| `EFT_CIRCLE_DEFAULT_THRESHOLD` | `350001` | 献祭阈值,14 小时档 |
|
|
55
|
+
| `EFT_CIRCLE_MAX_ITEMS` | `5` | 最多几件 |
|
|
56
|
+
| `EFT_CIRCLE_PRICE_FACTOR` | `1.0` | 买 1 件时的价格系数 |
|
|
57
|
+
| `EFT_CIRCLE_PRICE_FACTOR_STEP` | `0.02` | 每多一件追加的系数 |
|
|
58
|
+
| `EFT_CIRCLE_MAX_SAME_ITEM` | `0` | 同一件最多几份,0 = 不限 |
|
|
59
|
+
| `EFT_CIRCLE_CARD_ENABLED` | `true` | 是否发送卡片图 |
|
|
60
|
+
| `EFT_CIRCLE_WARM_ENABLED` | `true` | 是否后台预热行情 |
|
|
61
|
+
| `EFT_CIRCLE_WARM_INTERVAL_MINUTES` | `10.0` | 预热间隔(分钟) |
|
|
62
|
+
| `EFT_EFTFORGE_ENABLED` | `true` | 是否优先用 eftforge 取玩家档案 |
|
|
63
|
+
| `EFT_EFTFORGE_BASE` | `https://www.eftforge.com` | eftforge 地址 |
|
|
64
|
+
| `EFT_EFTFORGE_KEY` | 空 | eftforge 的 X-Atlas-Key(可选) |
|
|
65
|
+
| `EFT_EFTFORGE_ART_BRIGHTNESS` | `0.85` | 立绘压暗系数 |
|
|
66
|
+
|
|
67
|
+
## 效果
|
|
68
|
+
|
|
69
|
+
- 玩家卡片:左侧角色胸像、右侧昵称/等级/转生/结局/EXP 进度条、PMC 与 SCAV 双栏战绩、成就列表;
|
|
70
|
+
- 邪教圈卡片:按件数列出献祭组合、购买成本与节省额,金额统一卢布符号。
|
|
71
|
+
|
|
72
|
+
## 许可证
|
|
73
|
+
|
|
74
|
+
MIT
|