diff --git a/.gitignore b/.gitignore index b2d679d..20b0342 100644 --- a/.gitignore +++ b/.gitignore @@ -272,4 +272,5 @@ $RECYCLE.BIN/ config.toml config.toml.back test -data/qq_bot.json \ No newline at end of file +data/qq_bot.json +data/NapcatAdapter.db \ No newline at end of file diff --git a/src/recv_handler.py b/src/recv_handler.py index 4d45052..2853586 100644 --- a/src/recv_handler.py +++ b/src/recv_handler.py @@ -72,7 +72,7 @@ class RecvHandler: logger.debug("心跳正常") await asyncio.sleep(self.interval) - async def check_allow_to_chat(self, user_id: int, group_id: Optional[int]) -> bool: + async def check_allow_to_chat(self, user_id: int, group_id: Optional[int] = None) -> bool: # sourcery skip: hoist-statement-from-if, merge-else-if-into-elif """ 检查是否允许聊天