From 0dec10ddf2e8b5c241cd3fb65d756e9cbfa68300 Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Thu, 1 Feb 2024 18:38:04 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4tests=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/__init__.py | 0 tests/bs_test/bs_test.py | 42 - .../models_and_interfaces.py | 46 - tests/gpt3_test.py | 14 - tests/identifier_test/host_identifier.py | 43 - tests/models_api_compability/compability.py | 25 - tests/plugin_examples/__init__.py | 3 - .../plugin_examples/auto_approval/__init__.py | 0 tests/plugin_examples/auto_approval/main.py | 44 - tests/plugin_examples/cmdcn/__init__.py | 0 tests/plugin_examples/cmdcn/cmdcn.py | 51 - .../plugin_examples/hello_plugin/__init__.py | 0 tests/plugin_examples/hello_plugin/main.py | 50 - .../urlikethisijustsix/__init__.py | 0 .../urlikethisijustsix/urlt.py | 44 - tests/proxy_test/forward_proxy_test.py | 24 - tests/qq_offcial_api/botpy.log | 939 ------------------ tests/qq_offcial_api/channel_client.py | 87 -- tests/repo_regexp_test.py | 7 - tests/ssh_client_test/ssh_client.py | 57 -- tests/test_session_console.py | 16 - tests/token_test/__init__.py | 0 tests/token_test/tiktoken_test.py | 124 --- tests/token_test/token_count.py | 0 tests/tools/tool_call_test.py | 86 -- 25 files changed, 1702 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/bs_test/bs_test.py delete mode 100644 tests/compatibility_tests/models_and_interfaces.py delete mode 100644 tests/gpt3_test.py delete mode 100644 tests/identifier_test/host_identifier.py delete mode 100644 tests/models_api_compability/compability.py delete mode 100644 tests/plugin_examples/__init__.py delete mode 100644 tests/plugin_examples/auto_approval/__init__.py delete mode 100644 tests/plugin_examples/auto_approval/main.py delete mode 100644 tests/plugin_examples/cmdcn/__init__.py delete mode 100644 tests/plugin_examples/cmdcn/cmdcn.py delete mode 100644 tests/plugin_examples/hello_plugin/__init__.py delete mode 100644 tests/plugin_examples/hello_plugin/main.py delete mode 100644 tests/plugin_examples/urlikethisijustsix/__init__.py delete mode 100644 tests/plugin_examples/urlikethisijustsix/urlt.py delete mode 100644 tests/proxy_test/forward_proxy_test.py delete mode 100644 tests/qq_offcial_api/botpy.log delete mode 100644 tests/qq_offcial_api/channel_client.py delete mode 100644 tests/repo_regexp_test.py delete mode 100644 tests/ssh_client_test/ssh_client.py delete mode 100644 tests/test_session_console.py delete mode 100644 tests/token_test/__init__.py delete mode 100644 tests/token_test/tiktoken_test.py delete mode 100644 tests/token_test/token_count.py delete mode 100644 tests/tools/tool_call_test.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/bs_test/bs_test.py b/tests/bs_test/bs_test.py deleted file mode 100644 index 8a8e7eac..00000000 --- a/tests/bs_test/bs_test.py +++ /dev/null @@ -1,42 +0,0 @@ - -import requests -from bs4 import BeautifulSoup -import os -import random -import sys - - -user_agents = [ - 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36', - 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36', - 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0', - 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0', - 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36', - 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36', - 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Version/14.1.2 Safari/537.36', - 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Version/14.1 Safari/537.36', - 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0', - 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0' -] - -r = requests.get( - sys.argv[1], - headers={ - "User-Agent": random.choice(user_agents) - } -) -soup = BeautifulSoup(r.text, 'html.parser') -# print(soup.get_text()) - -raw = soup.get_text() - -import re - -# strip每一行 -# raw = '\n'.join([line.strip() for line in raw.split('\n')]) - -# # 删除所有空行或只有空格的行 -# raw = re.sub(r'\n\s*\n', '\n', raw) - - -print(raw) \ No newline at end of file diff --git a/tests/compatibility_tests/models_and_interfaces.py b/tests/compatibility_tests/models_and_interfaces.py deleted file mode 100644 index 1ace18d4..00000000 --- a/tests/compatibility_tests/models_and_interfaces.py +++ /dev/null @@ -1,46 +0,0 @@ -import openai -import time - -# 测试completion api -models = [ - 'gpt-3.5-turbo', - 'gpt-3.5-turbo-0301', - 'text-davinci-003', - 'text-davinci-002', - 'code-davinci-002', - 'code-cushman-001', - 'text-curie-001', - 'text-babbage-001', - 'text-ada-001', -] - -openai.api_key = "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" - -for model in models: - print('Testing model: ', model) - - # completion api - try: - response = openai.Completion.create( - model=model, - prompt="Say this is a test", - max_tokens=7, - temperature=0 - ) - print(' completion api: ', response['choices'][0]['text'].strip()) - except Exception as e: - print(' completion api err: ', e) - - # chat completion api - try: - completion = openai.ChatCompletion.create( - model="gpt-3.5-turbo", - messages=[ - {"role": "user", "content": "Hello!"} - ] - ) - print(" chat api: ",completion.choices[0].message['content'].strip()) - except Exception as e: - print(' chat api err: ', e) - - time.sleep(60) diff --git a/tests/gpt3_test.py b/tests/gpt3_test.py deleted file mode 100644 index 0b586a7a..00000000 --- a/tests/gpt3_test.py +++ /dev/null @@ -1,14 +0,0 @@ -import openai - -openai.api_key = "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" - -resp = openai.Completion.create( - prompt="user:你好,今天天气怎么样?\nbot:", - model="text-davinci-003", - temperature=0.9, # 数值越低得到的回答越理性,取值范围[0, 1] - top_p=1, # 生成的文本的文本与要求的符合度, 取值范围[0, 1] - frequency_penalty=0.2, - presence_penalty=1.0, -) - -print(resp) \ No newline at end of file diff --git a/tests/identifier_test/host_identifier.py b/tests/identifier_test/host_identifier.py deleted file mode 100644 index 64834931..00000000 --- a/tests/identifier_test/host_identifier.py +++ /dev/null @@ -1,43 +0,0 @@ -import os -import uuid -import json - -# 向 ~/.qchatgpt 写入一个 标识符 - -if not os.path.exists(os.path.expanduser('~/.qchatgpt')): - os.mkdir(os.path.expanduser('~/.qchatgpt')) - -identifier = { - "host_id": "host_"+str(uuid.uuid4()), -} - -if not os.path.exists(os.path.expanduser('~/.qchatgpt/host.json')): - print('create ~/.qchatgpt/host.json') - with open(os.path.expanduser('~/.qchatgpt/host.json'), 'w') as f: - json.dump(identifier, f) -else: - print('load ~/.qchatgpt/host.json') - with open(os.path.expanduser('~/.qchatgpt/host.json'), 'r') as f: - identifier = json.load(f) - -print(identifier) - -instance_id = { - "host_id": identifier['host_id'], - "instance_id": "instance_"+str(uuid.uuid4()), -} - -# 实例 id -if os.path.exists("res/instance_id.json"): - with open("res/instance_id.json", 'r') as f: - instance_id = json.load(f) - - if instance_id['host_id'] != identifier['host_id']: - os.remove("res/instance_id.json") - -if not os.path.exists("res/instance_id.json"): - print('create res/instance_id.json') - with open("res/instance_id.json", 'w') as f: - json.dump(instance_id, f) - -print(instance_id) \ No newline at end of file diff --git a/tests/models_api_compability/compability.py b/tests/models_api_compability/compability.py deleted file mode 100644 index cbd75b82..00000000 --- a/tests/models_api_compability/compability.py +++ /dev/null @@ -1,25 +0,0 @@ - -import os - -import openai - -client = openai.Client( - api_key=os.environ["OPENAI_API_KEY"], -) - -openai.proxies = { - 'http': 'http://127.0.0.1:7890', - 'https': 'http://127.0.0.1:7890', -} - -resp = client.chat.completions.create( - model="code-davinci-002", - messages=[ - { - "role": "user", - "content": "Hello, how are you?", - } - ] -) - -print(resp) \ No newline at end of file diff --git a/tests/plugin_examples/__init__.py b/tests/plugin_examples/__init__.py deleted file mode 100644 index b063f0ca..00000000 --- a/tests/plugin_examples/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# 插件示例 -# 将此目录下的目录放入plugins目录即可使用 -# 每个示例插件的功能请查看其包内的__init__.py或README.md diff --git a/tests/plugin_examples/auto_approval/__init__.py b/tests/plugin_examples/auto_approval/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/plugin_examples/auto_approval/main.py b/tests/plugin_examples/auto_approval/main.py deleted file mode 100644 index b1e5ccff..00000000 --- a/tests/plugin_examples/auto_approval/main.py +++ /dev/null @@ -1,44 +0,0 @@ -from mirai import Mirai - -import pkg.platform.manager -from pkg.plugin.models import * -from pkg.plugin.host import PluginHost - -from mirai.models import MemberJoinRequestEvent - -""" -加群自动审批 -""" - -__group_id__ = 1025599757 -__application_contains__ = ['github', 'gitee', 'Github', 'Gitee', 'GitHub'] - - -# 注册插件 -@register(name="加群审批", description="自动审批加群申请", version="0.1", author="RockChinQ") -class AutoApproval(Plugin): - - bot: Mirai = None - - # 插件加载时触发 - def __init__(self, plugin_host: PluginHost): - qqmgr = plugin_host.get_runtime_context().get_qqbot_manager() - assert isinstance(qqmgr, pkg.platform.manager.PlatformManager) - self.bot = qqmgr.bot - - # 向YiriMirai注册 加群申请 事件处理函数 - @qqmgr.bot.on(MemberJoinRequestEvent) - async def process(event: MemberJoinRequestEvent): - assert isinstance(qqmgr, pkg.platform.manager.PlatformManager) - if event.group_id == __group_id__: - if any([x in event.message for x in __application_contains__]): - logging.info("自动同意加群申请") - await qqmgr.bot.allow(event) - - self.process = process - - # 插件卸载时触发 - def __del__(self): - # 关闭时向YiriMirai注销 加群申请 事件处理函数 - if self.bot is not None: - self.bot.bus.unsubscribe(MemberJoinRequestEvent, self.process) diff --git a/tests/plugin_examples/cmdcn/__init__.py b/tests/plugin_examples/cmdcn/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/plugin_examples/cmdcn/cmdcn.py b/tests/plugin_examples/cmdcn/cmdcn.py deleted file mode 100644 index 788b0935..00000000 --- a/tests/plugin_examples/cmdcn/cmdcn.py +++ /dev/null @@ -1,51 +0,0 @@ -from pkg.plugin.models import * -from pkg.plugin.host import EventContext, PluginHost - -""" -基本命令的中文形式支持 -""" - - -__mapping__ = { - "帮助": "help", - "重置": "reset", - "前一次": "last", - "后一次": "next", - "会话内容": "prompt", - "列出会话": "list", - "重新回答": "resend", - "使用量": "usage", - "绘画": "draw", - "版本": "version", - "热重载": "reload", - "热更新": "update", - "配置": "cfg", -} - - -@register(name="CmdCN", description="命令中文支持", version="0.1", author="RockChinQ") -class CmdCnPlugin(Plugin): - - def __init__(self, plugin_host: PluginHost): - pass - - # 私聊发送指令 - @on(PersonCommandSent) - def person_command_sent(self, event: EventContext, **kwargs): - cmd = kwargs['command'] - if cmd in __mapping__: - - # 返回替换后的指令 - event.add_return("alter", "!"+__mapping__[cmd]+" "+" ".join(kwargs['params'])) - - # 群聊发送指令 - @on(GroupCommandSent) - def group_command_sent(self, event: EventContext, **kwargs): - cmd = kwargs['command'] - if cmd in __mapping__: - - # 返回替换后的指令 - event.add_return("alter", "!"+__mapping__[cmd]+" "+" ".join(kwargs['params'])) - - def __del__(self): - pass diff --git a/tests/plugin_examples/hello_plugin/__init__.py b/tests/plugin_examples/hello_plugin/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/plugin_examples/hello_plugin/main.py b/tests/plugin_examples/hello_plugin/main.py deleted file mode 100644 index 3a5ba8bb..00000000 --- a/tests/plugin_examples/hello_plugin/main.py +++ /dev/null @@ -1,50 +0,0 @@ -from pkg.plugin.models import * -from pkg.plugin.host import EventContext, PluginHost - -""" -在收到私聊或群聊消息"hello"时,回复"hello, <发送者id>!"或"hello, everyone!" -""" - - -# 注册插件 -@register(name="Hello", description="hello world", version="0.1", author="RockChinQ") -class HelloPlugin(Plugin): - - # 插件加载时触发 - # plugin_host (pkg.plugin.host.PluginHost) 提供了与主程序交互的一些方法,详细请查看其源码 - def __init__(self, plugin_host: PluginHost): - pass - - # 当收到个人消息时触发 - @on(PersonNormalMessageReceived) - def person_normal_message_received(self, event: EventContext, **kwargs): - msg = kwargs['text_message'] - if msg == "hello": # 如果消息为hello - - # 输出调试信息 - logging.debug("hello, {}".format(kwargs['sender_id'])) - - # 回复消息 "hello, <发送者id>!" - event.add_return("reply", ["hello, {}!".format(kwargs['sender_id'])]) - - # 阻止该事件默认行为(向接口获取回复) - event.prevent_default() - - # 当收到群消息时触发 - @on(GroupNormalMessageReceived) - def group_normal_message_received(self, event: EventContext, **kwargs): - msg = kwargs['text_message'] - if msg == "hello": # 如果消息为hello - - # 输出调试信息 - logging.debug("hello, {}".format(kwargs['sender_id'])) - - # 回复消息 "hello, everyone!" - event.add_return("reply", ["hello, everyone!"]) - - # 阻止该事件默认行为(向接口获取回复) - event.prevent_default() - - # 插件卸载时触发 - def __del__(self): - pass diff --git a/tests/plugin_examples/urlikethisijustsix/__init__.py b/tests/plugin_examples/urlikethisijustsix/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/plugin_examples/urlikethisijustsix/urlt.py b/tests/plugin_examples/urlikethisijustsix/urlt.py deleted file mode 100644 index 8bd1c2f5..00000000 --- a/tests/plugin_examples/urlikethisijustsix/urlt.py +++ /dev/null @@ -1,44 +0,0 @@ -import random - -from mirai import Plain - -from pkg.plugin.models import * -from pkg.plugin.host import EventContext, PluginHost - -""" -私聊或群聊消息为以下列出的一些冒犯性词语时,自动回复__random_reply__中的一句话 -""" - - -__words__ = ['sb', "傻逼", "dinner", "操你妈", "cnm", "fuck you", "fuckyou", - "f*ck you", "弱智", "若智", "答辩", "依托答辩", "低能儿", "nt", "脑瘫", "闹谈", "老坛"] - -__random_reply__ = ['好好好', "啊对对对", "好好好好", "你说得对", "谢谢夸奖"] - - -@register(name="啊对对对", description="你都这样了,我就顺从你吧", version="0.1", author="RockChinQ") -class AdddPlugin(Plugin): - - def __init__(self, plugin_host: PluginHost): - pass - - # 绑定私聊消息事件和群消息事件 - @on(PersonNormalMessageReceived) - @on(GroupNormalMessageReceived) - def normal_message_received(self, event: EventContext, **kwargs): - msg = kwargs['text_message'] - - # 如果消息中包含关键词 - if msg in __words__: - # 随机一个回复 - idx = random.randint(0, len(__random_reply__)-1) - - # 返回回复的消息 - event.add_return("reply", [Plain(__random_reply__[idx])]) - - # 阻止向接口获取回复 - event.prevent_default() - event.prevent_postorder() - - def __del__(self): - pass diff --git a/tests/proxy_test/forward_proxy_test.py b/tests/proxy_test/forward_proxy_test.py deleted file mode 100644 index dbe5399f..00000000 --- a/tests/proxy_test/forward_proxy_test.py +++ /dev/null @@ -1,24 +0,0 @@ -import os - -import openai - -client = openai.Client( - api_key=os.environ["OPENAI_API_KEY"], -) - -openai.proxies = { - 'http': 'http://127.0.0.1:7890', - 'https': 'http://127.0.0.1:7890', -} - -resp = client.chat.completions.create( - model="gpt-3.5-turbo", - messages=[ - { - "role": "user", - "content": "Hello, how are you?", - } - ] -) - -print(resp) \ No newline at end of file diff --git a/tests/qq_offcial_api/botpy.log b/tests/qq_offcial_api/botpy.log deleted file mode 100644 index 2951a8d9..00000000 --- a/tests/qq_offcial_api/botpy.log +++ /dev/null @@ -1,939 +0,0 @@ -2023-11-15 12:25:09,291 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 12:25:09,690 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 12:25:09,691 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 12:25:09,691 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 12:25:09,691 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 12:25:09,820 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 12:25:09,926 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 12:25:09,927 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 12:55:09,973 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 4009, 返回信息: Session timed out -2023-11-15 12:55:14,977 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 12:55:14,978 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 12:55:14,979 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 12:55:15,174 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 12:55:15,272 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 12:55:15,273 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 13:08:41,818 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 13:08:42,180 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 13:08:42,181 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 13:08:42,181 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 13:08:42,181 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 13:08:42,297 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 13:08:42,402 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 13:08:42,402 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 13:09:30,455 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 13:09:30,884 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 13:09:30,884 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 13:09:30,885 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 13:09:30,885 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 13:09:31,015 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 13:09:31,104 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 13:09:31,104 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 13:39:31,034 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 4009, 返回信息: Session timed out -2023-11-15 13:39:36,038 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 13:39:36,039 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 13:39:36,039 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 13:39:36,178 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 13:39:36,271 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 13:39:36,271 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 14:04:43,218 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 14:04:48,222 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 14:04:48,223 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 14:04:48,223 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 14:04:48,348 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 14:04:48,433 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 14:04:48,433 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 14:20:50,895 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 14:20:55,898 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 14:20:55,898 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 14:20:55,899 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 14:20:56,029 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 14:20:56,120 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 14:20:56,121 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 14:39:46,908 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 14:39:51,910 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 14:39:51,911 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 14:39:51,911 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 14:39:52,033 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 14:39:52,115 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 14:39:52,116 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 14:55:37,964 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 14:56:54,815 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 14:56:54,815 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 14:56:54,815 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 14:56:54,962 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 14:56:55,053 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 14:56:55,054 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 15:21:37,166 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 15:21:37,525 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 15:21:37,526 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 15:21:37,526 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 15:21:37,526 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 15:21:37,643 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 15:21:37,741 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 15:21:37,741 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 15:22:13,891 [ERROR] (http.py:73)_handle_response [botpy] 接口请求异常,请求连接: https://api.sgroup.qq.com/channels/5508784/messages, 错误代码: 500, 返回内容: {'message': 'internal error', 'code': 102}, trace_id:18fcd41d05a8c27cbb4e0ba04775b59d -2023-11-15 15:22:28,619 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 15:22:28,981 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 15:22:28,982 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 15:22:28,982 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 15:22:28,982 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 15:22:29,098 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 15:22:29,200 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 15:22:29,201 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 15:24:03,955 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 15:24:04,348 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 15:24:04,348 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 15:24:04,349 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 15:24:04,349 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 15:24:04,470 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 15:24:04,602 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 15:24:04,602 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 15:24:28,183 [ERROR] (http.py:73)_handle_response [botpy] 接口请求异常,请求连接: https://api.sgroup.qq.com/channels/5508784/messages, 错误代码: 500, 返回内容: {'message': 'internal error', 'code': 102}, trace_id:955d545d6efbc39050c385b2eff568f2 -2023-11-15 15:24:36,343 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 15:24:36,699 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 15:24:36,699 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 15:24:36,699 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 15:24:36,699 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 15:24:36,816 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 15:24:36,891 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 15:24:36,891 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 15:25:04,368 [WARNING] (http.py:188)request 请求超时,请求连接: https://api.sgroup.qq.com/channels/5508784/messages -2023-11-15 15:26:01,385 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 15:26:01,760 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 15:26:01,761 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 15:26:01,761 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 15:26:01,761 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 15:26:01,876 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 15:26:01,978 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 15:26:01,978 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 15:28:42,595 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 15:28:42,955 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 15:28:42,955 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 15:28:42,955 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 15:28:42,955 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 15:28:43,074 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 15:28:43,182 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 15:28:43,182 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 15:58:43,065 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 4009, 返回信息: Session timed out -2023-11-15 15:58:48,070 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 15:58:48,071 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 15:58:48,072 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 15:58:48,214 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 15:58:48,296 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 15:58:48,296 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 16:03:28,531 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 16:03:28,905 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 16:03:28,905 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 16:03:28,905 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 16:03:28,905 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 16:03:29,019 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 16:03:29,119 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 16:03:29,119 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 16:22:41,712 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 16:22:42,114 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 16:22:42,115 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 16:22:42,115 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 16:22:42,115 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 16:22:42,235 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 16:22:42,341 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 16:22:42,341 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 16:24:55,592 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 16:24:55,954 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 16:24:55,954 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 16:24:55,955 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 16:24:55,955 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 16:24:56,071 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 16:24:56,239 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 16:24:56,240 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 16:25:46,185 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 16:25:46,562 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 16:25:46,563 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 16:25:46,563 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 16:25:46,563 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 16:25:46,683 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 16:25:46,814 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 16:25:46,815 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 16:26:13,405 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 16:26:14,113 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 16:26:14,113 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 16:26:14,114 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 16:26:14,114 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 16:26:14,228 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 16:26:14,313 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 16:26:14,313 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 16:28:56,303 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 16:28:56,718 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 16:28:56,719 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 16:28:56,719 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 16:28:56,719 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 16:28:56,923 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 16:28:57,021 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 16:28:57,021 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 16:32:27,942 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 16:32:28,301 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 16:32:28,301 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 16:32:28,301 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 16:32:28,301 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 16:32:28,428 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 16:32:28,521 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 16:32:28,522 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 17:02:28,432 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 4009, 返回信息: Session timed out -2023-11-15 17:02:33,435 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:02:33,435 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:02:33,436 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:02:33,564 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 17:02:33,690 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 17:02:33,690 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 17:10:57,944 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 17:10:58,317 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 17:10:58,318 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:10:58,318 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:10:58,318 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:10:58,432 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:10:58,511 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:10:58,511 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:11:03,512 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:11:03,513 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:11:03,513 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:11:03,632 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:11:03,721 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:11:03,722 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:11:08,723 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:11:08,724 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:11:08,724 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:11:08,839 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:11:08,892 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:11:08,892 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:11:13,893 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:11:13,894 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:11:13,894 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:11:14,023 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:11:14,073 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:11:14,073 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:11:19,073 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:11:19,074 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:11:19,074 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:11:19,204 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:11:19,259 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:11:19,259 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:11:31,785 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 17:11:32,162 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 17:11:32,162 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:11:32,162 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:11:32,162 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:11:32,277 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:11:32,330 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:11:32,330 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:11:37,331 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:11:37,331 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:11:37,332 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:11:37,452 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:11:37,505 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:11:37,505 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:13:33,604 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 17:13:33,964 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 17:13:33,964 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:13:33,965 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:13:33,965 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:13:34,087 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:13:34,156 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:13:34,156 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:13:39,158 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:13:39,158 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:13:39,158 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:13:39,275 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:13:39,344 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:13:39,344 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:14:05,711 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 17:14:06,088 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 17:14:06,088 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:14:06,088 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:14:06,088 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:14:06,215 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:14:06,268 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:14:06,269 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:14:38,780 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 17:14:39,153 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 17:14:39,154 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:14:39,155 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:14:39,155 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:14:39,279 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:14:39,341 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:14:39,341 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:15:09,333 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 17:15:09,683 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 17:15:09,684 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:15:09,684 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:15:09,684 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:15:09,807 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:15:09,868 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:15:09,868 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:15:14,870 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:15:14,870 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:15:14,871 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:15:15,003 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:15:15,063 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:15:15,063 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:15:20,065 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:15:20,066 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:15:20,066 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:15:20,193 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:15:20,242 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:15:20,243 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:15:25,243 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:15:25,243 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:15:25,243 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:15:25,477 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:15:25,531 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:15:25,531 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:15:30,533 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:15:30,534 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:15:30,534 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:15:30,659 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:15:30,710 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:15:30,711 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:15:35,712 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:15:35,713 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:15:35,713 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:15:35,840 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:15:35,888 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:15:35,889 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:15:40,890 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:15:40,892 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:15:40,892 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:15:41,018 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:15:41,072 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:15:41,072 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:15:46,073 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:15:46,073 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:15:46,073 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:15:46,189 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:15:46,240 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:15:46,240 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:15:51,242 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:15:51,242 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:15:51,242 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:15:51,363 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:15:51,448 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:15:51,448 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:15:56,450 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:15:56,451 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:15:56,451 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:15:56,636 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:15:56,690 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:15:56,691 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:01,692 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:01,693 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:01,693 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:01,822 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:01,875 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:16:01,875 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:06,877 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:06,877 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:06,877 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:07,008 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:07,057 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: timed out -2023-11-15 17:16:07,057 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:12,059 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:12,059 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:12,059 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:12,184 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:12,291 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:16:12,291 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:17,293 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:17,293 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:17,294 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:17,440 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:17,493 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:16:17,493 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:22,495 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:22,496 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:22,496 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:22,621 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:22,674 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:16:22,674 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:27,675 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:27,675 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:27,676 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:27,790 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:27,842 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:16:27,842 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:32,842 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:32,843 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:32,843 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:32,962 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:33,069 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:16:33,069 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:38,070 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:38,071 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:38,071 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:38,314 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:38,370 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:16:38,370 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:43,371 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:43,372 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:43,372 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:43,510 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:43,562 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:16:43,562 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:48,564 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:48,564 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:48,565 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:48,695 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:48,766 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:16:48,766 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:53,768 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:53,769 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:53,769 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:54,024 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:54,072 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:16:54,072 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:16:59,074 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:16:59,074 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:16:59,074 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:16:59,251 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:16:59,310 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:16:59,310 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:17:04,312 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:17:04,313 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:17:04,313 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:17:04,437 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:17:04,487 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:17:04,487 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:17:09,488 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:17:09,488 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:17:09,488 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:17:09,673 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:17:09,733 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:17:09,733 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:17:14,734 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:17:14,735 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:17:14,735 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:17:14,867 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:17:14,938 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:17:14,938 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:17:19,939 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:17:19,940 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:17:19,940 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:17:20,059 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:17:20,129 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:17:20,129 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:17:25,131 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:17:25,132 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:17:25,132 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:17:25,263 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:17:25,321 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:17:25,321 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:17:30,323 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:17:30,323 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:17:30,323 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:17:30,561 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:17:30,616 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:17:30,616 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:17:35,617 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:17:35,617 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:17:35,618 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:17:35,741 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:17:35,790 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:17:35,790 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:17:40,792 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:17:40,792 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:17:40,792 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:17:40,913 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:17:40,963 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:17:40,963 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:17:45,956 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:17:45,957 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:17:45,957 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:17:46,075 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:17:46,129 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:17:46,129 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:17:51,124 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:17:51,126 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:17:51,126 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:17:51,431 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:17:51,487 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:17:51,488 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:17:56,484 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:17:56,485 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:17:56,485 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:17:56,610 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:17:56,667 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:17:56,667 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:01,665 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:01,666 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:01,666 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:01,796 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:01,852 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:18:01,852 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:06,851 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:06,853 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:06,854 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:07,091 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:07,163 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:18:07,164 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:12,163 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:12,164 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:12,164 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:12,284 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:12,340 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: timed out -2023-11-15 17:18:12,340 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:17,340 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:17,342 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:17,342 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:17,461 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:17,532 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:18:17,533 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:22,533 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:22,533 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:22,534 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:22,657 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:22,708 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:18:22,708 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:27,709 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:27,711 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:27,711 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:27,958 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:28,012 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:18:28,013 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:33,013 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:33,014 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:33,014 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:33,129 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:33,181 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:18:33,181 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:38,182 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:38,182 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:38,183 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:38,300 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:38,355 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:18:38,355 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:43,356 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:43,357 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:43,357 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:43,481 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:43,579 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:18:43,579 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:48,580 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:48,581 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:48,581 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:48,784 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:48,854 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:18:48,854 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:53,856 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:53,856 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:53,856 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:53,972 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:54,025 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:18:54,025 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:18:59,027 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:18:59,028 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:18:59,028 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:18:59,163 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:18:59,218 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:18:59,218 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:19:04,219 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:19:04,220 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:19:04,220 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:19:04,339 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:19:04,389 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:19:04,390 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:19:09,390 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:19:09,392 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:19:09,392 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:19:09,597 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:19:09,648 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:19:09,648 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:19:14,649 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:19:14,649 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:19:14,650 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:19:14,794 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:19:14,848 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:19:14,851 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:19:19,853 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:19:19,853 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:19:19,853 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:19:19,967 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:19:20,019 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:19:20,019 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:19:25,020 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:19:25,022 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:19:25,022 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:19:25,137 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:19:25,249 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:19:25,249 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:19:30,249 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:19:30,250 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:19:30,250 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:19:30,403 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:19:30,452 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: timed out -2023-11-15 17:19:30,452 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:19:35,454 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:19:35,455 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:19:35,455 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:19:35,583 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:19:35,640 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:19:35,640 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:19:40,642 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:19:40,642 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:19:40,642 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:19:40,771 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:19:40,836 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:19:40,836 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:19:45,836 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:19:45,837 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:19:45,837 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:19:45,991 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:19:46,064 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:19:46,065 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:19:51,066 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:19:51,066 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:19:51,066 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:19:51,208 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:19:51,280 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:19:51,280 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:19:59,253 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 17:19:59,780 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 17:19:59,780 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:19:59,780 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:19:59,781 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:19:59,900 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:19:59,954 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:19:59,954 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:20:04,956 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:20:04,956 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:20:04,956 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:20:05,082 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:20:05,149 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:20:05,149 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:20:10,151 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:20:10,151 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:20:10,151 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:20:10,323 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:20:10,374 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:20:10,375 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:20:15,376 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:20:15,377 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:20:15,378 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:20:15,509 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:20:15,559 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:20:15,559 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:20:20,560 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:20:20,561 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:20:20,561 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:20:20,690 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:20:20,745 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:20:20,745 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:20:25,746 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:20:25,747 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:20:25,747 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:20:25,865 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:20:25,923 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:20:25,923 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:20:30,924 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:20:30,926 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:20:30,926 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:20:31,053 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:20:31,105 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:20:31,105 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:20:36,106 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:20:36,107 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:20:36,107 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:20:36,228 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:20:36,279 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:20:36,279 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:20:41,281 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:20:41,281 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:20:41,281 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:20:41,399 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:20:41,468 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:20:41,468 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:20:46,470 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:20:46,472 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:20:46,472 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:20:46,607 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:20:46,658 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:20:46,658 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:20:51,659 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:20:51,659 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:20:51,660 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:20:51,792 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:20:51,859 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:20:51,860 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:20:56,860 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:20:56,861 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:20:56,861 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:20:56,994 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:20:57,051 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:20:57,051 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:02,053 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:02,053 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:02,053 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:02,178 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:02,243 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:21:02,243 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:07,245 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:07,246 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:07,246 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:07,388 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:07,449 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:21:07,449 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:12,451 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:12,451 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:12,451 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:12,585 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:12,640 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:21:12,640 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:17,641 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:17,643 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:17,643 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:17,772 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:17,823 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:21:17,823 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:22,824 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:22,825 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:22,825 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:22,946 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:23,003 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:21:23,003 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:28,005 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:28,005 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:28,005 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:28,128 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:28,196 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:21:28,197 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:33,198 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:33,198 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:33,199 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:33,327 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:33,378 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:21:33,378 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:38,379 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:38,380 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:38,380 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:38,506 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:38,557 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:21:38,557 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:43,559 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:43,559 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:43,560 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:43,680 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:43,747 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:21:43,748 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:48,749 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:48,749 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:48,749 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:48,891 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:48,946 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:21:48,947 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:53,948 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:53,948 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:53,948 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:54,069 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:54,137 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: disallowed intents -2023-11-15 17:21:54,137 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:21:59,138 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:21:59,139 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:21:59,139 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:21:59,255 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:21:59,306 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:21:59,306 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:22:04,307 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:22:04,307 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:22:04,307 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:22:04,425 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:22:04,478 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:22:04,478 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:22:09,479 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:22:09,479 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:22:09,480 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:22:09,607 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:22:09,662 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:22:09,662 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:22:14,663 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:22:14,664 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:22:14,664 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:22:14,855 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:22:14,942 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:22:14,942 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:22:19,943 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:22:19,943 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:22:19,944 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:22:20,067 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:22:20,120 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 17:22:20,120 [INFO] (gateway.py:57)on_closed [botpy] 无法重连,创建新连接! -2023-11-15 17:22:23,740 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 17:22:24,117 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 17:22:24,117 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:22:24,117 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:22:24,117 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:22:24,239 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:22:24,321 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 17:22:24,322 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 17:27:21,927 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 17:27:22,309 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 17:27:22,309 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:27:22,309 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:27:22,309 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:27:22,431 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 17:27:22,530 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 17:27:22,530 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 17:57:22,550 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 4009, 返回信息: Session timed out -2023-11-15 17:57:27,555 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 17:57:27,556 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 17:57:27,556 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 17:57:27,688 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 17:57:27,769 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 17:57:27,769 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 18:03:51,912 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 18:03:52,286 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 18:03:52,287 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 18:03:52,287 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 18:03:52,287 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 18:03:52,409 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 18:03:52,513 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 18:03:52,513 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 18:10:00,835 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 18:10:01,200 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 18:10:01,200 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 18:10:01,200 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 18:10:01,200 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 18:10:01,321 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 18:10:01,419 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 18:10:01,419 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 18:10:40,952 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 18:10:41,317 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 18:10:41,318 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 18:10:41,318 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 18:10:41,318 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 18:10:41,437 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 18:10:41,514 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 18:10:41,515 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 18:12:01,462 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 18:12:01,854 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 18:12:01,854 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 18:12:01,854 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 18:12:01,855 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 18:12:01,976 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 18:12:02,064 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 18:12:02,065 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 18:43:18,043 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 18:43:23,048 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 18:43:23,050 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 18:43:23,051 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 18:43:23,207 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 18:43:23,294 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 18:43:23,294 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 18:49:09,003 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 18:49:14,004 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 18:49:14,005 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 18:49:14,005 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 18:49:14,136 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 18:49:14,226 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 18:49:14,226 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 18:55:00,469 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 18:55:05,470 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 18:55:05,471 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 18:55:05,471 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 18:55:05,600 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 18:55:05,682 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 18:55:05,683 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 19:13:00,221 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 19:13:05,223 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 19:13:05,224 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 19:13:05,224 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 19:13:05,351 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 19:13:05,433 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 19:13:05,433 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 19:29:17,550 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 19:29:22,552 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 19:29:22,553 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 19:29:22,553 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 19:29:22,679 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 19:29:22,790 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 19:29:22,791 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 19:34:35,783 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 19:34:40,789 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 19:34:40,791 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 19:34:40,792 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 19:34:40,939 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 19:34:41,016 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 19:34:41,017 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 19:48:37,551 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 1006, 返回信息: None -2023-11-15 19:48:42,555 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 19:48:42,556 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 19:48:42,556 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 19:48:42,680 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 19:48:42,772 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 19:48:42,772 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 19:58:09,391 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 19:58:09,742 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 19:58:09,743 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 19:58:09,743 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 19:58:09,743 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 19:58:09,866 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 19:58:09,970 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 19:58:09,971 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 20:28:09,895 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 4009, 返回信息: Session timed out -2023-11-15 20:28:14,899 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 20:28:14,900 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 20:28:14,900 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 20:28:15,026 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 20:28:15,107 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 20:28:15,107 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 20:58:15,052 [INFO] (gateway.py:54)on_closed [botpy] 关闭, 返回码: 4009, 返回信息: Session timed out -2023-11-15 20:58:20,059 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 20:58:20,060 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 20:58:20,060 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 20:58:20,185 [INFO] (gateway.py:169)ws_resume [botpy] 重连启动... -2023-11-15 20:58:20,270 [INFO] (gateway.py:85)on_message [botpy] 机器人重连成功! -2023-11-15 20:58:20,270 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 21:20:35,692 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 21:20:36,082 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 21:20:36,082 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 21:20:36,082 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 21:20:36,083 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 21:20:36,185 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 21:20:36,287 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 21:20:36,288 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 21:41:35,075 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 21:41:35,450 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 21:41:35,451 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 21:41:35,451 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 21:41:35,451 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 21:41:35,557 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 21:41:35,640 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 21:41:35,640 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 22:02:54,550 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 22:02:54,914 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 22:02:54,914 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 22:02:54,914 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 22:02:54,914 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 22:02:55,034 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 22:02:55,116 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 22:02:55,116 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 22:03:11,959 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 22:03:12,280 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 22:03:12,281 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 22:03:12,281 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 22:03:12,282 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 22:03:12,432 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 22:03:12,526 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 22:03:12,527 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 22:25:23,062 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 22:25:23,423 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 22:25:23,423 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 22:25:23,423 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 22:25:23,423 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 22:25:23,529 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 22:25:23,630 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 22:25:23,631 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... -2023-11-15 22:26:21,402 [INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中... -2023-11-15 22:26:21,766 [INFO] (client.py:178)_bot_init [botpy] 程序启动... -2023-11-15 22:26:21,766 [INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1 -2023-11-15 22:26:21,766 [INFO] (client.py:236)bot_connect [botpy] 会话启动中... -2023-11-15 22:26:21,766 [INFO] (gateway.py:110)ws_connect [botpy] 启动中... -2023-11-15 22:26:21,874 [INFO] (gateway.py:136)ws_identify [botpy] 鉴权中... -2023-11-15 22:26:21,951 [INFO] (gateway.py:80)on_message [botpy] 机器人「QChatBot-测试中」启动成功! -2023-11-15 22:26:21,952 [INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动... diff --git a/tests/qq_offcial_api/channel_client.py b/tests/qq_offcial_api/channel_client.py deleted file mode 100644 index 94af6d9e..00000000 --- a/tests/qq_offcial_api/channel_client.py +++ /dev/null @@ -1,87 +0,0 @@ -import re - -import botpy -from botpy.message import Message, DirectMessage - -import openai -import datetime - -openai_client = openai.Client() - - -intents = botpy.Intents( - public_guild_messages=True, - direct_message=True, -) -client = botpy.Client(intents=intents) - -def wrapper(func): - async def fn(*args, **kwargs): - return await func(client, *args, **kwargs) - - return fn - -print(int('11374654729765438030')) - -@wrapper -async def on_at_message_create(self, message: Message): - # await self.api.post_message(channel_id=message.channel_id, content=openai_client.chat.completions.create( - # model="gpt-3.5-turbo", - # messages=[ - # { - # "role": "user", - # "content": message.content - # } - # ] - # ).choices[0].message.content) - print(self) - - print(message.content) - - # 删除消息中:<@!12345678> 这样的内容 - message.content = re.sub(r"<@!\d+>", "", message.content) - - print(message.content) - # image_url = openai_client.images.generate( - # model="dall-e-3", - # prompt=message.content, - # size="1024x1024", - # quality="standard", - # n=1, - # ).data[0].url - # print(image_url) - print(message.member.roles) - # 2022-06-04T22:56:51+08:00 - time_str = message.member.joined_at - date_obj = datetime.datetime.strptime(time_str, "%Y-%m-%dT%H:%M:%S%z") - print(date_obj.timestamp()) - - print(f"message.channel_id: {message.channel_id}, message.id: {message.id}, message.content: {message.content}, message.author: {message.author}, message.attachments: {message.attachments}") - print(message.mentions) - - await self.api.post_message( - channel_id=message.channel_id, - msg_id=message.id, - image="https://gchat.qpic.cn/download?appid=1407&fileid=CgoxMDEwNTUzODkyEhS7rtLyruPu6lyTBvTjQwZul5vuERjx-wEg_woo6oKkscHDggNQgL2jAQ&rkey=CAMSMEpZEUuWzKJ8k5PQaayVPrGr_qQ1zF89b65iW_h_w-HlQvPmNfEeCLBaR3Mhtt1FTA&spec=0", - # content=message.content - ) - - print(message.channel_id, message.id) - print(type(message.channel_id), type(message.id)) - - await self.api.post_message( - channel_id=message.channel_id, - msg_id=message.id, - image="https://gchat.qpic.cn/download?appid=1407&fileid=CgoxMDEwNTUzODkyEhS7rtLyruPu6lyTBvTjQwZul5vuERjx-wEg_woo6oKkscHDggNQgL2jAQ&rkey=CAMSMEpZEUuWzKJ8k5PQaayVPrGr_qQ1zF89b65iW_h_w-HlQvPmNfEeCLBaR3Mhtt1FTA&spec=0", - # content=message.content - ) - -@wrapper -async def on_direct_message_create(self, message: DirectMessage): - print(f"message.channel_id: {message.channel_id}, message.id: {message.id}, message.content: {message.content}, message.author: {message.author}, message.attachments: {message.attachments}") - await self.api.post_dms(guild_id=message.guild_id, content="hi") - - -setattr(client, "on_at_message_create", on_at_message_create) -setattr(client, "on_direct_message_create", on_direct_message_create) -client.run(appid="102076866", token="jwn1C2V1S9q3PBHoSLKfA7pKzKVyWzkm") diff --git a/tests/repo_regexp_test.py b/tests/repo_regexp_test.py deleted file mode 100644 index 5bf78f9d..00000000 --- a/tests/repo_regexp_test.py +++ /dev/null @@ -1,7 +0,0 @@ -import re - -repo_url = "git@github.com:RockChinQ/WebwlkrPlugin.git" - -repo = re.findall(r'(?:https?://github\.com/|git@github\.com:)([^/]+/[^/]+?)(?:\.git|/|$)', repo_url) - -print(repo) \ No newline at end of file diff --git a/tests/ssh_client_test/ssh_client.py b/tests/ssh_client_test/ssh_client.py deleted file mode 100644 index a8054a9b..00000000 --- a/tests/ssh_client_test/ssh_client.py +++ /dev/null @@ -1,57 +0,0 @@ -import os -import sys -import paramiko -import time -import select - - -class sshClient: - #创建一个ssh客户端,和服务器连接上,准备发消息 - def __init__(self,host,port,user,password): - self.trans = paramiko.Transport((host, port)) - self.trans.start_client() - self.trans.auth_password(username=user, password=password) - self.channel = self.trans.open_session() - self.channel.get_pty() - self.channel.invoke_shell() - - #给服务器发送一个命令 - def sendCmd(self,cmd): - self.channel.sendall(cmd) - - #接收的时候,有时候服务器处理的比较慢,需要设置一个延时等待一下。 - def recvResponse(self,timeout): - data=b'' - while True: - try: - #使用select,不断的读取数据,直到没有多余的数据了,超时返回。 - readable,w,e= select.select([self.channel],[],[],timeout) - if self.channel in readable: - data = self.channel.recv(1024) - else: - sys.stdout.write(data.decode()) - sys.stdout.flush() - return data.decode() - except TimeoutError: - sys.stdout.write(data.decode()) - sys.stdout.flush() - return data.decode - #关闭客户端 - def close(self): - self.channel.close() - self.trans.close() - -host='host' -port=22#your port -user='root' -pwd='pass' - -ssh = sshClient(host,port,user,pwd) -response = ssh.recvResponse(1) -response = ssh.sendCmd("ls\n") -ssh.sendCmd("cd /home\n") -response = ssh.recvResponse(1) -ssh.sendCmd("ls\n") -response = ssh.recvResponse(1) - -ssh.close() diff --git a/tests/test_session_console.py b/tests/test_session_console.py deleted file mode 100644 index 4939d6c0..00000000 --- a/tests/test_session_console.py +++ /dev/null @@ -1,16 +0,0 @@ -import config -import unittest -import pkg.provider.session -import pkg.provider.manager - - -class TestOpenAISession(unittest.TestCase): - def test_session_console(self): - interact = pkg.provider.manager.OpenAIInteract(config.openai_config['api_key'], config.completion_api_params) - - session = pkg.provider.session.Session('test') - print(session.append('你好')) - print("#{}#".format(session.prompt)) - - print(session.append('你叫什么名字')) - print("#{}#".format(session.prompt)) diff --git a/tests/token_test/__init__.py b/tests/token_test/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/token_test/tiktoken_test.py b/tests/token_test/tiktoken_test.py deleted file mode 100644 index c66de117..00000000 --- a/tests/token_test/tiktoken_test.py +++ /dev/null @@ -1,124 +0,0 @@ -import tiktoken -import openai -import json -import os - - -openai.api_key = os.getenv("OPENAI_API_KEY") - - -def encode(text: str, model: str): - import tiktoken - enc = tiktoken.get_encoding("cl100k_base") - assert enc.decode(enc.encode("hello world")) == "hello world" - - # To get the tokeniser corresponding to a specific model in the OpenAI API: - enc = tiktoken.encoding_for_model(model) - - return enc.encode(text) - - -# def ask(prompt: str, model: str = "gpt-3.5-turbo"): -# # To get the tokeniser corresponding to a specific model in the OpenAI API: -# enc = tiktoken.encoding_for_model(model) - -# resp = openai.ChatCompletion.create( -# model=model, -# messages=[ -# { -# "role": "user", -# "content": prompt -# } -# ] -# ) - -# return enc.encode(prompt), enc.encode(resp['choices'][0]['message']['content']), resp - -def ask( - messages: list, - model: str = "gpt-3.5-turbo" -): - enc = tiktoken.encoding_for_model(model) - - resp = openai.ChatCompletion.create( - model=model, - messages=messages - ) - - txt = "" - - for r in messages: - txt += r['role'] + r['content'] + "\n" - - txt += "assistant: " - - return enc.encode(txt), enc.encode(resp['choices'][0]['message']['content']), resp - - -def num_tokens_from_messages(messages, model="gpt-3.5-turbo-0613"): - """Return the number of tokens used by a list of messages.""" - try: - encoding = tiktoken.encoding_for_model(model) - except KeyError: - print("Warning: model not found. Using cl100k_base encoding.") - encoding = tiktoken.get_encoding("cl100k_base") - if model in { - "gpt-3.5-turbo-0613", - "gpt-3.5-turbo-16k-0613", - "gpt-4-0314", - "gpt-4-32k-0314", - "gpt-4-0613", - "gpt-4-32k-0613", - }: - tokens_per_message = 3 - tokens_per_name = 1 - elif model == "gpt-3.5-turbo-0301": - tokens_per_message = 4 # every message follows <|start|>{role/name}\n{content}<|end|>\n - tokens_per_name = -1 # if there's a name, the role is omitted - elif "gpt-3.5-turbo" in model: - print("Warning: gpt-3.5-turbo may update over time. Returning num tokens assuming gpt-3.5-turbo-0613.") - return num_tokens_from_messages(messages, model="gpt-3.5-turbo-0613") - elif "gpt-4" in model: - print("Warning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.") - return num_tokens_from_messages(messages, model="gpt-4-0613") - else: - raise NotImplementedError( - f"""num_tokens_from_messages() is not implemented for model {model}. See https://github.com/openai/openai-python/blob/main/chatml.md for information on how messages are converted to tokens.""" - ) - num_tokens = 0 - for message in messages: - num_tokens += tokens_per_message - for key, value in message.items(): - num_tokens += len(encoding.encode(value)) - if key == "name": - num_tokens += tokens_per_name - num_tokens += 3 # every reply is primed with <|start|>assistant<|message|> - return num_tokens - -messages = [ - { - "role": "user", - "content": "你叫什么名字?" - },{ - "role": "assistant", - "content": "我是AI助手,没有具体的名字。你可以叫我GPT-3。有什么可以帮到你的吗?" - },{ - "role": "user", - "content": "你是由谁开发的?" - },{ - "role": "assistant", - "content": "我是由OpenAI开发的,一家人工智能研究实验室。OpenAI的使命是促进人工智能的发展,使其为全人类带来积极影响。我是由OpenAI团队使用GPT-3模型训练而成的。" - },{ - "role": "user", - "content": "很高兴见到你。" - } -] - - -pro, rep, resp=ask(messages) - -print(len(pro), len(rep)) -print(resp) -print(resp['choices'][0]['message']['content']) - -print(num_tokens_from_messages(messages, model="gpt-3.5-turbo")) \ No newline at end of file diff --git a/tests/token_test/token_count.py b/tests/token_test/token_count.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/tools/tool_call_test.py b/tests/tools/tool_call_test.py deleted file mode 100644 index 20287fe6..00000000 --- a/tests/tools/tool_call_test.py +++ /dev/null @@ -1,86 +0,0 @@ -from openai import OpenAI -import json - -client = OpenAI( - api_key='' -) - -client.base_url = "https://oneapi.rockchin.top/v1" -client.api_key = "sk-YikPSaMii0LquY5T0b2a13C0C493414790C8Fc3751Aa8aB2" - -# Example dummy function hard coded to return the same weather -# In production, this could be your backend API or an external API -def get_current_weather(location, unit="fahrenheit"): - """Get the current weather in a given location""" - if "tokyo" in location.lower(): - return json.dumps({"location": "Tokyo", "temperature": "10", "unit": unit}) - elif "san francisco" in location.lower(): - return json.dumps({"location": "San Francisco", "temperature": "72", "unit": unit}) - elif "paris" in location.lower(): - return json.dumps({"location": "Paris", "temperature": "22", "unit": unit}) - else: - return json.dumps({"location": location, "temperature": "unknown"}) - -def run_conversation(): - # Step 1: send the conversation and available functions to the model - messages = [{"role": "user", "content": "What's the weather like in San Francisco, Tokyo, and Paris?"}] - tools = [ - { - "type": "function", - "function": { - "name": "get_current_weather", - "description": "Get the current weather in a given location", - "parameters": { - "type": "object", - "properties": { - "location": { - "type": "string", - "description": "The city and state, e.g. San Francisco, CA", - }, - "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}, - }, - "required": ["location"], - }, - }, - } - ] - response = client.chat.completions.create( - model="gpt-3.5-turbo-1106", - messages=messages, - tools=tools, - tool_choice="auto", # auto is default, but we'll be explicit - ) - response_message = response.choices[0].message - print(response_message) - tool_calls = response_message.tool_calls - # Step 2: check if the model wanted to call a function - if tool_calls: - # Step 3: call the function - # Note: the JSON response may not always be valid; be sure to handle errors - available_functions = { - "get_current_weather": get_current_weather, - } # only one function in this example, but you can have multiple - messages.append(response_message) # extend conversation with assistant's reply - # Step 4: send the info for each function call and function response to the model - for tool_call in tool_calls: - function_name = tool_call.function.name - function_to_call = available_functions[function_name] - function_args = json.loads(tool_call.function.arguments) - function_response = function_to_call( - location=function_args.get("location"), - unit=function_args.get("unit"), - ) - messages.append( - { - "tool_call_id": tool_call.id, - "role": "tool", - "name": function_name, - "content": function_response, - } - ) # extend conversation with function response - second_response = client.chat.completions.create( - model="gpt-3.5-turbo-1106", - messages=messages, - ) # get a new response from the model where it can see the function response - return second_response -print(run_conversation())