mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-08-01 18:50:00 +00:00
fix ws reverse
This commit is contained in:
@ -157,8 +157,9 @@ class Driver(BaseDriver):
|
||||
websocket = WebSocket(websocket)
|
||||
|
||||
# Create Bot Object
|
||||
if adapter == "coolq":
|
||||
bot = CQBot(self,
|
||||
if adapter in self._adapters:
|
||||
BotClass = self._adapters[adapter]
|
||||
bot = BotClass(self,
|
||||
"websocket",
|
||||
self.config,
|
||||
x_self_id,
|
||||
|
Reference in New Issue
Block a user