nonebot-plugin-aawarframe 0.2.5__tar.gz → 0.2.6__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.
Files changed (28) hide show
  1. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/PKG-INFO +1 -1
  2. nonebot_plugin_aawarframe-0.2.6/nonebot_plugin_aawarframe/service/__init__.py +0 -0
  3. nonebot_plugin_aawarframe-0.2.6/nonebot_plugin_aawarframe/service/archimedea/__init__.py +0 -0
  4. nonebot_plugin_aawarframe-0.2.6/nonebot_plugin_aawarframe/service/archimedea/deep.py +27 -0
  5. nonebot_plugin_aawarframe-0.2.6/nonebot_plugin_aawarframe/service/archimedea/temporal.py +27 -0
  6. nonebot_plugin_aawarframe-0.2.6/nonebot_plugin_aawarframe/service/cycle/__init__.py +0 -0
  7. nonebot_plugin_aawarframe-0.2.6/nonebot_plugin_aawarframe/service/cycle/eidolon.py +121 -0
  8. nonebot_plugin_aawarframe-0.2.6/nonebot_plugin_aawarframe/util/__init__.py +0 -0
  9. nonebot_plugin_aawarframe-0.2.6/nonebot_plugin_aawarframe/util/browser_manager.py +58 -0
  10. nonebot_plugin_aawarframe-0.2.6/nonebot_plugin_aawarframe/util/data_fetcher.py +9 -0
  11. nonebot_plugin_aawarframe-0.2.6/nonebot_plugin_aawarframe/util/data_processor.py +181 -0
  12. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe.egg-info/PKG-INFO +1 -1
  13. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe.egg-info/SOURCES.txt +11 -1
  14. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/pyproject.toml +8 -7
  15. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/LICENSE +0 -0
  16. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/README.md +0 -0
  17. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe/__init__.py +0 -0
  18. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe/assets/conquest_zh.json +0 -0
  19. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe/assets/faction_type.json +0 -0
  20. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe/assets/mission_type.json +0 -0
  21. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe/assets/templates/archimedea.html +0 -0
  22. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe/assets/templates/eidolon_clock.html +0 -0
  23. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe/assets/variables.json +0 -0
  24. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe/commands.py +0 -0
  25. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe.egg-info/dependency_links.txt +0 -0
  26. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe.egg-info/requires.txt +0 -0
  27. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/nonebot_plugin_aawarframe.egg-info/top_level.txt +0 -0
  28. {nonebot_plugin_aawarframe-0.2.5 → nonebot_plugin_aawarframe-0.2.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-aawarframe
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: aa 的 Warframe 助手
5
5
  Author-email: nekox41 <aameow@outlook.com>
6
6
  License-Expression: MIT
@@ -0,0 +1,27 @@
1
+ # 深层科研模块
2
+ # 描述:生成深层科研(CT_LAB)数据图片
3
+ # 作者:aa
4
+ # 2026年7月22日
5
+
6
+ from pathlib import Path
7
+
8
+ from nonebot.adapters.onebot.v11 import MessageSegment
9
+
10
+ from ...util.data_processor import extract_conquests, render_archimedea_panel, transform_to_archimedea_data
11
+ from ...util.browser_manager import html_to_pic
12
+ from ...util.data_fetcher import fetch_world_state
13
+
14
+ _TEMPLATE_DIR = Path(__file__).parent.parent.parent / "assets" / "templates"
15
+
16
+
17
+ async def gen_deep_img() -> MessageSegment:
18
+ """生成深层科研图片(CT_LAB)"""
19
+ raw = await fetch_world_state()
20
+ conquests = extract_conquests(raw)
21
+ target = next((c for c in conquests if c.get("Type") == "CT_LAB"), None)
22
+ if not target:
23
+ return MessageSegment.text("未找到深层科研数据")
24
+ data = transform_to_archimedea_data(target)
25
+ html = render_archimedea_panel(data, str(_TEMPLATE_DIR / "archimedea.html"))
26
+ img_bytes = await html_to_pic(html)
27
+ return MessageSegment.image(img_bytes)
@@ -0,0 +1,27 @@
1
+ # 时光科研模块
2
+ # 描述:生成时光科研(CT_HEX)数据图片
3
+ # 作者:aa
4
+ # 2026年7月22日
5
+
6
+ from pathlib import Path
7
+
8
+ from nonebot.adapters.onebot.v11 import MessageSegment
9
+
10
+ from ...util.data_processor import extract_conquests, render_archimedea_panel, transform_to_archimedea_data
11
+ from ...util.browser_manager import html_to_pic
12
+ from ...util.data_fetcher import fetch_world_state
13
+
14
+ _TEMPLATE_DIR = Path(__file__).parent.parent.parent / "assets" / "templates"
15
+
16
+
17
+ async def gen_temporal_img() -> MessageSegment:
18
+ """生成时光科研图片(CT_HEX)"""
19
+ raw = await fetch_world_state()
20
+ conquests = extract_conquests(raw)
21
+ target = next((c for c in conquests if c.get("Type") == "CT_HEX"), None)
22
+ if not target:
23
+ return MessageSegment.text("未找到时光科研数据")
24
+ data = transform_to_archimedea_data(target)
25
+ html = render_archimedea_panel(data, str(_TEMPLATE_DIR / "archimedea.html"))
26
+ img_bytes = await html_to_pic(html)
27
+ return MessageSegment.image(img_bytes)
@@ -0,0 +1,121 @@
1
+ # 夜灵模块
2
+ # 描述:从 worldState 获取数据,生成夜晚图片
3
+ # 作者:aa
4
+ # 2026年7月22日
5
+
6
+ from datetime import datetime, timezone, timedelta
7
+ from pathlib import Path
8
+
9
+ from nonebot.adapters.onebot.v11 import MessageSegment
10
+
11
+ from ...util.browser_manager import html_to_pic
12
+ from ...util.data_fetcher import fetch_world_state
13
+
14
+
15
+ _CST = timezone(timedelta(hours=8)) # 中国标准时间 UTC+8
16
+
17
+
18
+ def _ms_to_hms(ms: int) -> str:
19
+ """将毫秒转换为中文时间格式,零值单位不显示"""
20
+ total_seconds = max(ms // 1000, 0)
21
+ hours = total_seconds // 3600
22
+ minutes = (total_seconds % 3600) // 60
23
+ seconds = total_seconds % 60
24
+ parts: list[str] = []
25
+ if hours > 0:
26
+ parts.append(f"{hours:02d}小时")
27
+ if minutes > 0:
28
+ parts.append(f"{minutes:02d}分")
29
+ parts.append(f"{seconds:02d}秒")
30
+ return "".join(parts)
31
+
32
+
33
+ def _ts_to_hhmm(ts_ms: int) -> str:
34
+ """将毫秒时间戳转换为 HH:MM 24小时制格式(北京时间 UTC+8)"""
35
+ dt = datetime.fromtimestamp(ts_ms / 1000, tz=_CST)
36
+ return dt.strftime("%H:%M")
37
+
38
+
39
+ async def extract_data() -> dict[str, object]:
40
+ """提取生成夜灵时钟图片所需要的数据返回"""
41
+ result: dict[str, object] = {}
42
+ raw = await fetch_world_state()
43
+ all_mission = raw.get("SyndicateMissions", [])
44
+ cetus: dict = {}
45
+ for mission in all_mission:
46
+ if mission.get("Tag", "") == "CetusSyndicate":
47
+ cetus.update(mission)
48
+ else:
49
+ continue
50
+
51
+ # 我们需要输出 当前状态、剩余时间、以及接下来的黑夜时间
52
+ # 判断当前状态需要的数据 赏金结束时间 当前时间 白天持续时间 黑夜持续时间
53
+ # 赏金结束时间是毫秒
54
+ day_time = 6000000 # 白天 100 分钟
55
+ night_time = 3000000 # 黑夜 50 分钟
56
+ full_cycle = day_time + night_time # 完整昼夜循环 150 分钟
57
+
58
+ start_time = int(cetus["Activation"]["$date"]["$numberLong"])
59
+ end_time = int(cetus["Expiry"]["$date"]["$numberLong"])
60
+ night_start = start_time + day_time
61
+ current_time = int(raw.get("Time", 0)) * 1000
62
+
63
+ # 如果当前时间还没到夜晚开始时间,证明是白天
64
+ if current_time >= night_start:
65
+ result["Current"] = "夜晚"
66
+ else:
67
+ result["Current"] = "白天"
68
+
69
+ # 我们需要计算出当前状态的剩余时间
70
+ # 如果当前是白天,那么就是当前时间到夜晚开始时间
71
+ # 如果当前是夜晚,那么就是当前时间到赏金结束时间
72
+ if result["Current"] == "夜晚":
73
+ result["ToEnd"] = _ms_to_hms(end_time - current_time)
74
+ else:
75
+ result["ToEnd"] = _ms_to_hms(night_start - current_time)
76
+
77
+ # 下一次夜晚到来的时间,如果当前状态是白天,那么就是night_start
78
+ # 如果当前状态是黑夜,就是当前这个循环结束之后加上day_time,也就是下一次循环中的night_start
79
+ if result["Current"] == "白天":
80
+ next_night = night_start
81
+ else:
82
+ next_night = end_time + day_time
83
+
84
+ # 以00:00 24小时制的格式字符串存储,计算出下一次之后再计算出接下来4个,
85
+ # 总共5个夜晚到来的时间,然后以列表形式存到result里面
86
+ night_times: list[str] = []
87
+ for i in range(5):
88
+ night_ts = next_night + i * full_cycle
89
+ night_times.append(_ts_to_hhmm(night_ts))
90
+ result["NightTimes"] = night_times
91
+
92
+ return result
93
+
94
+
95
+ _TEMPLATE_DIR = Path(__file__).parent.parent.parent / "assets" / "templates"
96
+
97
+
98
+ async def gen_eidolon_img() -> MessageSegment:
99
+ """生成夜灵平原时钟图片"""
100
+ data = await extract_data()
101
+
102
+ # 构建夜晚时间行 HTML
103
+ night_rows = "\n".join(
104
+ f' <tr>\n <td class="time">{t}</td>\n </tr>'
105
+ for t in data["NightTimes"]
106
+ )
107
+
108
+ # 读取模板文件
109
+ template_path = _TEMPLATE_DIR / "eidolon_clock.html"
110
+ with open(template_path, "r", encoding="utf-8") as f:
111
+ template = f.read()
112
+
113
+ # 填充模板占位符
114
+ html = template.replace("{{CURRENT_STATE}}", data["Current"])
115
+ html = html.replace("{{REMAINING_TIME}}", data["ToEnd"])
116
+ html = html.replace("{{NIGHT_TIMES_ROWS}}", night_rows)
117
+
118
+ # 生成图片(CSS 已内联,无需 base_url)
119
+ img_bytes = await html_to_pic(html)
120
+
121
+ return MessageSegment.image(img_bytes)
@@ -0,0 +1,58 @@
1
+ # Playwright 浏览器单例管理
2
+ # 描述:管理无头 Chromium 的生命周期,提供 html_to_pic 渲染接口
3
+ # 作者:aa
4
+ # 2026年7月22日
5
+
6
+ from typing import Optional
7
+
8
+ from nonebot.log import logger
9
+ from playwright.async_api import Browser, Page, Playwright, async_playwright
10
+
11
+ _playwright: Optional[Playwright] = None
12
+ _browser: Optional[Browser] = None
13
+
14
+
15
+ async def _launch_browser() -> Browser:
16
+ """启动无头 Chromium 浏览器实例"""
17
+ global _playwright, _browser
18
+ _playwright = await async_playwright().start()
19
+ _browser = await _playwright.chromium.launch(headless=True)
20
+ logger.info("Playwright 无头 Chromium 已启动")
21
+ return _browser
22
+
23
+
24
+ async def get_browser() -> Browser:
25
+ """获取浏览器单例,首次调用时自动启动"""
26
+ global _browser
27
+ if _browser is None or not _browser.is_connected():
28
+ _browser = await _launch_browser()
29
+ return _browser
30
+
31
+
32
+ async def html_to_pic(html: str) -> bytes:
33
+ """
34
+ 将 HTML 字符串渲染为 PNG 图片字节
35
+
36
+ :param html: 完整的 HTML 字符串
37
+ :return: PNG 图片二进制数据
38
+ """
39
+ browser = await get_browser()
40
+ page: Page = await browser.new_page()
41
+ try:
42
+ await page.set_content(html, wait_until="networkidle")
43
+ body = page.locator("body")
44
+ return await body.screenshot(type="png")
45
+ finally:
46
+ await page.close()
47
+
48
+
49
+ async def shutdown_browser():
50
+ """关闭浏览器和 Playwright,用于插件卸载时清理"""
51
+ global _browser, _playwright
52
+ if _browser is not None:
53
+ await _browser.close()
54
+ _browser = None
55
+ if _playwright is not None:
56
+ await _playwright.stop()
57
+ _playwright = None
58
+ logger.info("Playwright 浏览器已关闭")
@@ -0,0 +1,9 @@
1
+ import httpx
2
+ from typing import Any, Dict
3
+
4
+ async def fetch_world_state() -> Dict[str, Any]:
5
+ url = "https://api.warframe.com/cdn/worldState.php"
6
+ async with httpx.AsyncClient() as client:
7
+ resp = await client.get(url)
8
+ resp.raise_for_status()
9
+ return resp.json()
@@ -0,0 +1,181 @@
1
+ import json
2
+ from pathlib import Path
3
+ from typing import Any, Dict, List, Union
4
+ from nonebot.log import logger
5
+
6
+ # ---------- 加载映射文件 ----------
7
+ _ASSETS_DIR = Path(__file__).parent.parent / "assets"
8
+
9
+ def _load_json(filename: str) -> Dict:
10
+ path = _ASSETS_DIR / filename
11
+ if path.exists():
12
+ with open(path, 'r', encoding='utf-8') as f:
13
+ return json.load(f)
14
+ return {}
15
+
16
+ FACTION_MAP = _load_json("faction_type.json") # 如 {"FC_SCALDRA": "炽蛇军"}
17
+ MISSION_TYPE_MAP = _load_json("mission_type.json") # 如 {"MT_DEFENSE": "防御"}
18
+ CONQUEST_ZH = _load_json("conquest_zh.json") # 所有字符串翻译
19
+ VARIABLES_MAP = _load_json("variables.json")
20
+
21
+ def _get_translation(key: str) -> str:
22
+ """从 conquest_zh.json 获取翻译,若不存在则返回原 key"""
23
+ return CONQUEST_ZH.get(key, key)
24
+
25
+ # ---------- 核心转换函数 ----------
26
+ def transform_to_archimedea_data(raw_data: Dict[str, Any]) -> Dict[str, Any]:
27
+ """
28
+ 将原始 Conquest 数据(包含 Type, Missions, Variables)转换为前端所需格式
29
+ """
30
+ conquest_type = raw_data.get("Type", "")
31
+ if not conquest_type:
32
+ return {}
33
+
34
+ # 根据类型选择前缀
35
+ if conquest_type == "CT_LAB":
36
+ type_prefix = "/Lotus/Language/Conquest/MissionVariant_LabConquest_"
37
+ else: # CT_HEX 或其它
38
+ type_prefix = "/Lotus/Language/Conquest/MissionVariant_HexConquest_"
39
+
40
+ pm_prefix = "/Lotus/Language/Conquest/PersonalMod_"
41
+ risk_prefix = "/Lotus/Language/Conquest/Condition_"
42
+
43
+ # ---------- 处理 Missions ----------
44
+ missions = []
45
+ for mission in raw_data.get("Missions", []):
46
+ # 转换 faction 和 missionType
47
+ faction_key = mission.get("faction", "")
48
+ faction_zh = FACTION_MAP.get(faction_key, faction_key)
49
+
50
+ mission_type_key = mission.get("missionType", "")
51
+ mission_type_zh = MISSION_TYPE_MAP.get(mission_type_key, mission_type_key)
52
+
53
+ # 寻找 CD_HARD 难度的配置(若没有则尝试 CD_NORMAL)
54
+ difficulties = mission.get("difficulties", [])
55
+ hard_diff = None
56
+ for diff in difficulties:
57
+ if diff.get("type") == "CD_HARD":
58
+ hard_diff = diff
59
+ break
60
+ if hard_diff is None:
61
+ # 没有 CD_HARD,尝试 CD_NORMAL
62
+ for diff in difficulties:
63
+ if diff.get("type") == "CD_NORMAL":
64
+ hard_diff = diff
65
+ break
66
+ if hard_diff is None:
67
+ # 若仍没有则跳过该任务
68
+ continue
69
+
70
+ # 构建条件列表
71
+ conditions = []
72
+
73
+ # a) deviation 作为一个条件
74
+ deviation = hard_diff.get("deviation")
75
+ if deviation:
76
+ name_key = type_prefix + deviation
77
+ desc_key = name_key + "_Desc"
78
+ conditions.append({
79
+ "name": _get_translation(name_key),
80
+ "desc": _get_translation(desc_key)
81
+ })
82
+
83
+ # b) risks 中的每个风险作为一个条件
84
+ for risk in hard_diff.get("risks", []):
85
+ name_key = risk_prefix + risk
86
+ desc_key = name_key + "_Desc"
87
+ conditions.append({
88
+ "name": _get_translation(name_key),
89
+ "desc": _get_translation(desc_key)
90
+ })
91
+
92
+ missions.append({
93
+ "faction": faction_zh,
94
+ "missionType": mission_type_zh,
95
+ "difficulties": conditions
96
+ })
97
+
98
+ # ---------- 处理 Variables(先转换 UI 名称为内部名称)----------
99
+ variables = []
100
+ for ui_name in raw_data.get("Variables", []):
101
+ # 根据 UI 名称查找内部名称
102
+ internal_name = VARIABLES_MAP.get(ui_name) # 若找不到则为 None
103
+ if internal_name is None:
104
+ # 如果映射中找不到,保留原样(或者记录日志,或者直接跳过)
105
+ # 这里我们保留原样并用它拼接(可能失败)
106
+ internal_name = ui_name
107
+ # 拼接前缀
108
+ name_key = pm_prefix + internal_name
109
+ desc_key = name_key + "_Desc"
110
+ variables.append({
111
+ "name": _get_translation(name_key),
112
+ "desc": _get_translation(desc_key)
113
+ })
114
+
115
+ return {
116
+ "Missions": missions,
117
+ "Variables": variables
118
+ }
119
+
120
+ def extract_conquests(raw_data: Dict[str, Any]) -> List[Dict[str, Any]]:
121
+ """
122
+ 从 World State 中提取 Conquests (科研数据)
123
+ :param raw_data: World State 数据
124
+ :return: 两个科研的数据,可以通过 Type 来区分时光和深层。CT_LAB 为深层,CT_HEX 为时光。
125
+ """
126
+ conquests = raw_data.get("Conquests", [])
127
+ if not conquests:
128
+ logger.warning("未找到科研数据。")
129
+
130
+ return conquests
131
+
132
+
133
+ def render_archimedea_panel(data: Union[Dict, str], template_path: str = "archimedea.html") -> str:
134
+ """
135
+ 将任务数据填充到HTML模板中,返回完整的HTML字符串。
136
+ 参数与之前一致。
137
+ """
138
+ # 如果传入的是JSON字符串,先解析为字典
139
+ if isinstance(data, str):
140
+ data = json.loads(data)
141
+
142
+ # 构建左侧任务区域的HTML行
143
+ missions_rows = []
144
+ for mission in data.get("Missions", []):
145
+ mission_type = mission.get("missionType", "未知任务")
146
+ faction = mission.get("faction", "")
147
+ difficulties = mission.get("difficulties", [])
148
+
149
+ title_content = mission_type
150
+ if faction:
151
+ title_content += f' <span class="faction-tag">{faction}</span>'
152
+
153
+ missions_rows.append(f'<tr class="task-title-row"><td colspan="2">{title_content}</td></tr>')
154
+
155
+ for diff in difficulties:
156
+ cond_name = diff.get("name", "")
157
+ cond_desc = diff.get("desc", "")
158
+ missions_rows.append(
159
+ f'<tr>'
160
+ f'<td class="cond-name">{cond_name}</td>'
161
+ f'<td class="cond-desc">{cond_desc}</td>'
162
+ f'</tr>'
163
+ )
164
+
165
+ # 构建右侧变量区域的HTML行
166
+ variables_rows = []
167
+ for var in data.get("Variables", []):
168
+ var_name = var.get("name", "")
169
+ var_desc = var.get("desc", "")
170
+ variables_rows.append(f'<tr class="factor-title-row"><td colspan="2">{var_name}</td></tr>')
171
+ variables_rows.append(f'<tr class="factor-desc-row"><td colspan="2">{var_desc}</td></tr>')
172
+
173
+ # 读取模板文件(注意路径)
174
+ template_path = Path(template_path) # 确保是Path对象
175
+ with open(template_path, "r", encoding="utf-8") as f:
176
+ template = f.read()
177
+
178
+ html_output = template.replace("{{MISSIONS_ROWS}}", "\n".join(missions_rows))
179
+ html_output = html_output.replace("{{VARIABLES_ROWS}}", "\n".join(variables_rows))
180
+
181
+ return html_output
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-aawarframe
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: aa 的 Warframe 助手
5
5
  Author-email: nekox41 <aameow@outlook.com>
6
6
  License-Expression: MIT
@@ -13,4 +13,14 @@ nonebot_plugin_aawarframe/assets/faction_type.json
13
13
  nonebot_plugin_aawarframe/assets/mission_type.json
14
14
  nonebot_plugin_aawarframe/assets/variables.json
15
15
  nonebot_plugin_aawarframe/assets/templates/archimedea.html
16
- nonebot_plugin_aawarframe/assets/templates/eidolon_clock.html
16
+ nonebot_plugin_aawarframe/assets/templates/eidolon_clock.html
17
+ nonebot_plugin_aawarframe/service/__init__.py
18
+ nonebot_plugin_aawarframe/service/archimedea/__init__.py
19
+ nonebot_plugin_aawarframe/service/archimedea/deep.py
20
+ nonebot_plugin_aawarframe/service/archimedea/temporal.py
21
+ nonebot_plugin_aawarframe/service/cycle/__init__.py
22
+ nonebot_plugin_aawarframe/service/cycle/eidolon.py
23
+ nonebot_plugin_aawarframe/util/__init__.py
24
+ nonebot_plugin_aawarframe/util/browser_manager.py
25
+ nonebot_plugin_aawarframe/util/data_fetcher.py
26
+ nonebot_plugin_aawarframe/util/data_processor.py
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nonebot-plugin-aawarframe"
3
- version = "0.2.5"
3
+ version = "0.2.6"
4
4
  description = "aa 的 Warframe 助手"
5
5
  authors = [
6
6
  {name = "nekox41",email = "aameow@outlook.com"},
@@ -10,12 +10,13 @@ requires-python = "==3.12.*"
10
10
  readme = "README.md"
11
11
  license = "MIT"
12
12
 
13
+ [tool.setuptools.packages.find]
14
+ where = ["."]
15
+ include = ["nonebot_plugin_aawarframe*"]
13
16
 
14
- [tool.pdm]
15
- distribution = false
17
+ [tool.setuptools.package-data]
18
+ nonebot_plugin_aawarframe = ["assets/**/*"]
16
19
 
17
- [tool.setuptools]
18
- packages = ["nonebot_plugin_aawarframe"]
19
20
 
20
- [tool.setuptools.package-data]
21
- nonebot_plugin_aawarframe = ["assets/**/*", "assets/*", "assets/**/*.*"]
21
+ [tool.pdm]
22
+ distribution = false