mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-08 14:56:03 +00:00
feat: 支持 ctrl+c 退出
This commit is contained in:
@@ -207,6 +207,12 @@ class AiocqhttpAdapter(adapter.MessageSourceAdapter):
|
||||
|
||||
def __init__(self, config: dict, ap: app.Application):
|
||||
self.config = config
|
||||
|
||||
async def shutdown_trigger_placeholder():
|
||||
return None
|
||||
|
||||
self.config['shutdown_trigger'] = shutdown_trigger_placeholder
|
||||
|
||||
self.ap = ap
|
||||
|
||||
self.bot = aiocqhttp.CQHttp()
|
||||
|
||||
Reference in New Issue
Block a user