OneBotConnecter 0.3.4__tar.gz → 0.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OneBotConnecter
3
- Version: 0.3.4
3
+ Version: 0.3.5
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.04"
7
+ version = "0.3.05"
8
8
  authors = [
9
9
  { name="Sugar51243", email="1733682365@qq.com" },
10
10
  ]
@@ -60,7 +60,7 @@ class OneBot:
60
60
  if self.bot != None:
61
61
  self.bot = await websockets.connect(self._uri)
62
62
  message = await self.bot.recv() #测试接口可用性
63
- print(f"\n地址{self._uri}连接已完成")
63
+ print(f"地址{self._uri}连接已完成")
64
64
  callback = await self.get_login_info() #更新机器人本体信息
65
65
  if callback == None:
66
66
  print(f"地址{self._uri}连接中断")
@@ -84,6 +84,7 @@ class OneBot:
84
84
  await asyncio.sleep(5)
85
85
  #连接正常
86
86
  if self.bot != None:
87
+ if self.testMode: print("Next Loop")
87
88
  #从接口收取信息,并进行信息处理
88
89
  task = asyncio.create_task(self._receive_messages(on_message))
89
90
  try:
@@ -123,6 +124,7 @@ class OneBot:
123
124
  traceback.print_exc()
124
125
  print("")
125
126
  if self.testMode: print(f"信息列表处理完毕\n")
127
+ if not self.get_message: self.get_message = True
126
128
  #连接失败
127
129
  except websockets.exceptions.ConnectionClosed:
128
130
  print("与机器人连接已断开\n")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OneBotConnecter
3
- Version: 0.3.4
3
+ Version: 0.3.5
4
4
  Summary: 基于websocket(服务器正向)连接的onebot11通用python接口
5
5
  Author-email: Sugar51243 <1733682365@qq.com>
6
6
  License: MIT License
File without changes