OneBotConnecter 0.3.13__tar.gz → 0.3.14__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.13
3
+ Version: 0.3.14
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.13"
7
+ version = "0.3.14"
8
8
  authors = [
9
9
  { name="Sugar51243", email="1733682365@qq.com" },
10
10
  ]
@@ -101,7 +101,7 @@ class OneBot:
101
101
  await asyncio.sleep(sleep_time)
102
102
 
103
103
  #建立连接 (WS正向) == #初次连接
104
- async def non_async_run(self, on_message: __module__ = _on_message, sleep_time: int = 1):
104
+ async def non_async_run(self, on_message: __module__ = _on_message):
105
105
  print("正在建立初次连接...", needPrint=False)
106
106
  #直到连接成功为止,持续尝试连接
107
107
  while self.bot == None:
@@ -142,7 +142,6 @@ class OneBot:
142
142
  tb = e.__traceback__
143
143
  formatted_tb = ''.join(traceback.format_tb(tb))
144
144
  print(f"接口处理报错:\n{formatted_tb}", needPrint=self.testMode)
145
- await asyncio.sleep(sleep_time)
146
145
 
147
146
  #收到信息时
148
147
  async def _receive_messages(self, callback: __module__):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OneBotConnecter
3
- Version: 0.3.13
3
+ Version: 0.3.14
4
4
  Summary: 基于websocket(服务器正向)连接的onebot11通用python接口
5
5
  Author-email: Sugar51243 <1733682365@qq.com>
6
6
  License: MIT License