mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-02 07:45:54 +00:00
bugfix: remove client.stop
This commit is contained in:
parent
b3af59fc8e
commit
5d829ca575
@ -325,7 +325,13 @@ class FeishuChannel(BaseChannel):
|
|||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
|
|
||||||
async def stop(self) -> None:
|
async def stop(self) -> None:
|
||||||
"""Stop the Feishu bot."""
|
"""
|
||||||
|
Stop the Feishu bot.
|
||||||
|
|
||||||
|
Notice: lark.ws.Client does not expose stop method, simply exiting the program will close the client.
|
||||||
|
|
||||||
|
Reference: https://github.com/larksuite/oapi-sdk-python/blob/v2_main/lark_oapi/ws/client.py#L86
|
||||||
|
"""
|
||||||
self._running = False
|
self._running = False
|
||||||
logger.info("Feishu bot stopped")
|
logger.info("Feishu bot stopped")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user