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.
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/Adapters/OneBot.py +0 -2
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/Adapters/OneBotLib/Manager.py +6 -2
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/Events.py +1 -1
- {hyper-bot-0.7 → hyper-bot-0.71}/PKG-INFO +1 -1
- {hyper-bot-0.7 → hyper-bot-0.71}/hyper_bot.egg-info/PKG-INFO +1 -1
- {hyper-bot-0.7 → hyper-bot-0.71}/setup.py +1 -1
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/Configurator.py +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/DataBase.py +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/Errors.py +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/Listener.py +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/Logger.py +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/Logic.py +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/Manager.py +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/ModuleClass.py +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/Network.py +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/Segments.py +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/Hyper/WordSafety.py +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/LICENSE +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/hyper_bot.egg-info/SOURCES.txt +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/hyper_bot.egg-info/dependency_links.txt +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/hyper_bot.egg-info/top_level.txt +0 -0
- {hyper-bot-0.7 → hyper-bot-0.71}/setup.cfg +0 -0
|
@@ -34,8 +34,12 @@ class Packet:
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
class Message:
|
|
37
|
-
def __init__(self,
|
|
38
|
-
if
|
|
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")
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|