OneBotConnecter 0.3.8__tar.gz → 0.3.10__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OneBotConnecter
3
- Version: 0.3.8
3
+ Version: 0.3.10
4
4
  Summary: 基于websocket(服务器正向)连接的onebot11通用python接口
5
5
  Author-email: Sugar51243 <1733682365@qq.com>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "OneBotConnecter"
7
- version = "0.3.08"
7
+ version = "0.3.10"
8
8
  authors = [
9
9
  { name="Sugar51243", email="1733682365@qq.com" },
10
10
  ]
@@ -101,7 +101,6 @@ class OneBot:
101
101
  except Exception: pass
102
102
  await asyncio.sleep(sleep_time)
103
103
  print(f"此轮结束\n", needPrint=self.testMode)
104
- counter+=1
105
104
 
106
105
  #收到信息时
107
106
  async def _receive_messages(self, callback: __module__):
@@ -168,9 +167,10 @@ class OneBot:
168
167
  print(f"数据包发送: {datapack}", needPrint=self.testMode)
169
168
  #收集处理结果
170
169
  message = None
171
- print(f"中断信息收集", needPrint=self.testMode)
172
- self.get_message = False
173
170
  while True:
171
+ if self.get_message:
172
+ print(f"中断信息收集", needPrint=self.testMode)
173
+ self.get_message = False
174
174
  #因为处理可能会有延迟,需要识别从接口收取的信息
175
175
  try:
176
176
  #从接口收取信息
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OneBotConnecter
3
- Version: 0.3.8
3
+ Version: 0.3.10
4
4
  Summary: 基于websocket(服务器正向)连接的onebot11通用python接口
5
5
  Author-email: Sugar51243 <1733682365@qq.com>
6
6
  License: MIT License