hyper-bot 0.82.4__tar.gz → 0.82.5__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 (37) hide show
  1. {hyper_bot-0.82.4/src/hyper_bot.egg-info → hyper_bot-0.82.5}/PKG-INFO +1 -1
  2. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/pyproject.toml +1 -1
  3. {hyper_bot-0.82.4 → hyper_bot-0.82.5/src/hyper_bot.egg-info}/PKG-INFO +1 -1
  4. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/LecAdapters/OneBot.py +3 -1
  5. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/__init__.py +1 -1
  6. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/segments.py +7 -6
  7. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/LICENSE +0 -0
  8. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/setup.cfg +0 -0
  9. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyper_bot.egg-info/SOURCES.txt +0 -0
  10. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyper_bot.egg-info/dependency_links.txt +0 -0
  11. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyper_bot.egg-info/requires.txt +0 -0
  12. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyper_bot.egg-info/top_level.txt +0 -0
  13. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/LecAdapters/Milky.py +0 -0
  14. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/LecAdapters/MilkyLib/Manager.py +0 -0
  15. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/LecAdapters/MilkyLib/Res.py +0 -0
  16. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/LecAdapters/MilkyLib/translator.py +0 -0
  17. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/LecAdapters/OneBotLib/Manager.py +0 -0
  18. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/LecAdapters/OneBotLib/Res.py +0 -0
  19. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/adapters/__init__.py +0 -0
  20. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/adapters/builtins.py +0 -0
  21. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/adapters/common.py +0 -0
  22. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/adapters/listener.py +0 -0
  23. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/adapters/obuilder.py +0 -0
  24. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/adapters/res.py +0 -0
  25. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/common.py +0 -0
  26. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/configurator.py +0 -0
  27. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/events.py +0 -0
  28. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/hyperogger.py +0 -0
  29. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/listener.py +0 -0
  30. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/network.py +0 -0
  31. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/utils/ArkSignHelper.py +0 -0
  32. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/utils/__init__.py +0 -0
  33. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/utils/apiresponse.py +0 -0
  34. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/utils/errors.py +0 -0
  35. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/utils/hypetyping.py +0 -0
  36. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/utils/screens.py +0 -0
  37. {hyper_bot-0.82.4 → hyper_bot-0.82.5}/src/hyperot/utils/typextensions.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyper-bot
3
- Version: 0.82.4
3
+ Version: 0.82.5
4
4
  Summary: 稳定高效、易于开发的QQ Bot框架
5
5
  Author-email: Harcic <harcic@outlook.com>
6
6
  Project-URL: repository, https://github.com/HarcicYang/HypeR_Bot
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hyper-bot"
7
- version = "0.82.4"
7
+ version = "0.82.5"
8
8
  description = "稳定高效、易于开发的QQ Bot框架"
9
9
  authors = [
10
10
  { name = "Harcic", email = "harcic@outlook.com" },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyper-bot
3
- Version: 0.82.4
3
+ Version: 0.82.5
4
4
  Summary: 稳定高效、易于开发的QQ Bot框架
5
5
  Author-email: Harcic <harcic@outlook.com>
6
6
  Project-URL: repository, https://github.com/HarcicYang/HypeR_Bot
@@ -4,6 +4,8 @@ import asyncio
4
4
  import sys
5
5
  from typing import Union, Callable
6
6
 
7
+ import websockets
8
+
7
9
  from .. import network, events, common, segments, configurator, hyperogger
8
10
  from ..utils import errors
9
11
  from ..utils.apiresponse import *
@@ -282,7 +284,7 @@ async def run() -> None:
282
284
  while True:
283
285
  try:
284
286
  data = await connection.recv()
285
- except ConnectionResetError:
287
+ except websockets.exceptions.ConnectionClosedError:
286
288
  logger.error("连接断开")
287
289
  break
288
290
  except json.decoder.JSONDecodeError:
@@ -7,7 +7,7 @@ import sys
7
7
  import os
8
8
  import signal
9
9
 
10
- HYPER_BOT_VERSION = "0.82.4"
10
+ HYPER_BOT_VERSION = "0.82.5"
11
11
 
12
12
  # listener = None
13
13
 
@@ -2,7 +2,7 @@ import dataclasses
2
2
  import json
3
3
  import os.path
4
4
  import uuid
5
- from typing import Union, TYPE_CHECKING, Any, Optional
5
+ from typing import Union, TYPE_CHECKING, Any
6
6
 
7
7
  from .utils.errors import *
8
8
  from . import configurator
@@ -133,11 +133,6 @@ class Contact(SegmentBase, st="contact"):
133
133
  return f"[推荐{'群' if self.type == 'group' else '用户'}: {self.id}]"
134
134
 
135
135
 
136
- @dataclasses.dataclass
137
- class Forward(SegmentBase, st="forward", su="[Forward]"):
138
- id: str
139
-
140
-
141
136
  @dataclasses.dataclass
142
137
  class Node(SegmentBase, st="node", su="[Node]"):
143
138
  user_id: str
@@ -157,6 +152,12 @@ class CustomNode:
157
152
  return f"[自定义节点]"
158
153
 
159
154
 
155
+ @dataclasses.dataclass
156
+ class Forward(SegmentBase, st="forward", su="[Forward]"):
157
+ content: list
158
+ id: str = ""
159
+
160
+
160
161
  class KeyBoardButton:
161
162
  def __init__(self,
162
163
  text: str,
File without changes
File without changes