diff --git a/chatGPTQQbot/.env.dev b/chatGPTQQbot/.env.dev index a2b7ead..80d4a83 100644 --- a/chatGPTQQbot/.env.dev +++ b/chatGPTQQbot/.env.dev @@ -8,4 +8,4 @@ NICKNAME=["awesome", "bot"] # 配置机器人的昵称 COMMAND_START=["/", ""] # 配置命令起始字符 COMMAND_SEP=["."] # 配置命令分割字符 -active_bowser=True \ No newline at end of file +active_bowser=False \ No newline at end of file diff --git a/chatGPTQQbot/src/plugins/gpttalk/__init__.py b/chatGPTQQbot/src/plugins/gpttalk/__init__.py index 580e935..c0090b5 100644 --- a/chatGPTQQbot/src/plugins/gpttalk/__init__.py +++ b/chatGPTQQbot/src/plugins/gpttalk/__init__.py @@ -29,7 +29,7 @@ def __init__(self, bot,email_,status_): self.status = status_ #active_nobowser=False #启动不需要打开浏览器的部分 -active_bowser=False or nonebot.get_driver().config.active_bowser #启动需要打开浏览器的部分,在.env.dev文件中修改,默认为False +active_bowser=(False or not('false' in str(nonebot.get_driver().config.active_bowser).lower())) #启动需要打开浏览器的部分,在.env.dev文件中修改,默认为False conn = sqlite3.connect('./js/qqgroup_userinfo.db') c = conn.cursor() # conn.close()