mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-06 20:16:47 +00:00
🎨 change method into private
This commit is contained in:
@ -192,7 +192,7 @@ class Driver(BaseDriver):
|
||||
f"WebSocket Connection from <y>{adapter.upper()} "
|
||||
f"Bot {x_self_id}</y> Accepted!")
|
||||
|
||||
self.bot_connect(bot)
|
||||
self._bot_connect(bot)
|
||||
|
||||
try:
|
||||
while not ws.closed:
|
||||
@ -203,7 +203,7 @@ class Driver(BaseDriver):
|
||||
|
||||
asyncio.create_task(bot.handle_message(data))
|
||||
finally:
|
||||
self.bot_disconnect(bot)
|
||||
self._bot_disconnect(bot)
|
||||
|
||||
|
||||
class WebSocket(BaseWebSocket):
|
||||
|
Reference in New Issue
Block a user