在创建两个群组时,如果有一个群组只有一个服务器,将无法查询
10-23 23:06:49 [SUCCESS] nonebot | OneBot V11 1827491547 | [message.group.normal]: Message 327436508 from 619676549@[群:1151106450] '/dt' 10-23 23:06:49 [DEBUG] nonebot | Checking for matchers in priority 1... 10-23 23:06:49 [DEBUG] nonebot | Checking for matchers in priority 5... 10-23 23:06:49 [DEBUG] nonebot | Checking for matchers in priority 10... 10-23 23:06:49 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_l4d2_server.main, lineno=52) 10-23 23:06:49 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_l4d2_server.main, lineno=52) 10-23 23:06:49 [DEBUG] nonebot | Running handler Dependent(call=) 10-23 23:06:49 [INFO] nonebot_plugin_l4d2_server | 请输入正确的 ID 10-23 23:06:49 [DEBUG] nonebot_plugin_l4d2_server | 获取服务器组 dt 的信息 10-23 23:06:49 [DEBUG] nonebot_plugin_l4d2_server | [{'id': '1', 'ip': '114.514.191:33033', 'host': '114.514.191', 'port': 33033}] 10-23 23:06:49 [INFO] nonebot_plugin_l4d2_server | 正在请求组服务器信息 dt 10-23 23:06:49 [DEBUG] nonebot_plugin_l4d2_server | [Player(index=0, name='章鱼宝宝', score=29, duration=684.96337890625), Player(index=0, name='曦月梦雪', score=9, duration=429.25408935546875), Player(index=0, name='莫妮 莫妮', score=3, duration=133.0684356689453), Player(index=0, name='SumiSakura', score=1, duration=166.94485473632812)] 10-23 23:06:49 [WARNING] nonebot_plugin_l4d2_server | Error in get_server_img: list object has no element 1 10-23 23:06:49 [WARNING] nonebot_plugin_l4d2_server | 我的图图呢 10-23 23:06:49 [DEBUG] nonebot | OneBot V11 | Calling API send_msg 10-23 23:06:50 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_l4d2_server.main, lineno=52) running complete 10-23 23:06:50 [DEBUG] nonebot | Checking for matchers in priority 20... 10-23 23:06:50 [DEBUG] nonebot | Checking for matchers in priority 99... 10-23 23:06:50 [DEBUG] nonebot | Checking for matchers completed 10-23 23:06:54 [SUCCESS] nonebot | OneBot V11 1827491547 | [message.group.normal]: Message 456615493 from 619676549@[群:1151106450] '/群组' 10-23 23:06:54 [DEBUG] nonebot | Checking for matchers in priority 1... 10-23 23:06:54 [DEBUG] nonebot | Checking for matchers in priority 5... 10-23 23:06:54 [DEBUG] nonebot | Checking for matchers in priority 10... 10-23 23:06:54 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_l4d2_server.main, lineno=52) 10-23 23:06:54 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_l4d2_server.main, lineno=52) 10-23 23:06:54 [DEBUG] nonebot | Running handler Dependent(call=) 10-23 23:06:54 [INFO] nonebot_plugin_l4d2_server | 请输入正确的 ID 10-23 23:06:54 [DEBUG] nonebot_plugin_l4d2_server | 获取服务器组 群组 的信息 10-23 23:06:54 [DEBUG] nonebot_plugin_l4d2_server | [{'id': '猫', 'ip': '114.514.192:33076', 'host': '114.514.192', 'port': 33076}, {'id': '新猫', 'ip': '139.199.223.21:58045', 'host': '139.199.223.21', 'port': 58045}] 10-23 23:06:54 [INFO] nonebot_plugin_l4d2_server | 正在请求组服务器信息 群组 10-23 23:06:54 [DEBUG] nonebot_plugin_l4d2_server | [Player(index=0, name='ライ', score=14, duration=618.9380493164062), Player(index=0, name='铁血流浪汉', score=4, duration=716.864013671875), Player(index=0, name='英伦逃 兵圣爱音', score=2, duration=205.3255615234375), Player(index=0, name='月下誓约·此生相携', score=1, duration=4847.5), Player(index=0, name='𝕭𝖎𝖆𝖓𝕷𝖛𝖆�', score=0, duration=587.8853149414062)] 10-23 23:06:57 [SUCCESS] nonebot_plugin_l4d2_server | 正在输出图片 10-23 23:06:57 [INFO] nonebot_plugin_l4d2_server | 正在输出组 10-23 23:06:57 [DEBUG] nonebot | OneBot V11 | Calling API send_msg 10-23 23:06:59 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_l4d2_server.main, lineno=52) running complete 10-23 23:06:59 [DEBUG] nonebot | Checking for matchers in priority 20... 10-23 23:06:59 [DEBUG] nonebot | Checking for matchers in priority 99... 10-23 23:06:59 [DEBUG] nonebot | Checking for matchers completed
当这两个组合并时,无问题