hyper-bot 0.7__tar.gz → 0.71__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.
@@ -216,8 +216,6 @@ def reg(func: callable):
216
216
  handler = func
217
217
 
218
218
 
219
-
220
-
221
219
  def get_ret(echo: str) -> Manager.Ret:
222
220
  old = None
223
221
  while True:
@@ -34,8 +34,12 @@ class Packet:
34
34
 
35
35
 
36
36
  class Message:
37
- def __init__(self, contents: list = None):
38
- if contents is None:
37
+ def __init__(self, *args):
38
+ if len(args) == 1 and isinstance(args[0], list):
39
+ contents = args[0]
40
+ elif len(args) > 1:
41
+ contents = list(args)
42
+ else:
39
43
  contents = []
40
44
  self.contents = contents
41
45
 
@@ -81,7 +81,7 @@ def gen_message(data: dict) -> Manager.Message:
81
81
 
82
82
  class Event:
83
83
  def __init__(self, data: dict):
84
- self.data = data
84
+ self.data = data.copy()
85
85
  self.time = data.get("time")
86
86
  self.self_id = data.get("self_id")
87
87
  self.post_type = data.get("post_type")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hyper-bot
3
- Version: 0.7
3
+ Version: 0.71
4
4
  Summary: 稳定高效、易于开发的QQ Bot框架
5
5
  Home-page: https://github.com/HarcicYang/HypeR_Bot
6
6
  Author: Harcic
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hyper-bot
3
- Version: 0.7
3
+ Version: 0.71
4
4
  Summary: 稳定高效、易于开发的QQ Bot框架
5
5
  Home-page: https://github.com/HarcicYang/HypeR_Bot
6
6
  Author: Harcic
@@ -4,7 +4,7 @@ from setuptools import setup
4
4
 
5
5
  setup(
6
6
  name="hyper-bot",
7
- version="0.7",
7
+ version="0.71",
8
8
  description="稳定高效、易于开发的QQ Bot框架",
9
9
  author="Harcic",
10
10
  author_email="harcic@outlook.com",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes