NTEUID icon indicating copy to clipboard operation
NTEUID copied to clipboard

报错

Open Tamamoimoto opened this issue 3 months ago • 0 comments

最新版本的gscore与nteuid对接的nonebot2,部分指令报错。 日志如下: 08-20 15:10:12 [info ] {SayuCore } [Receive] bot_id=onebot, bot_self_id=BOT, msg_id=973759194, user_type=group, group_id=群号, user_id=QQ1, user_pm=0, content=[Message(type='text', data='.nte残虹bot最强面板')], 08-20 15:10:12 [info ] {SayuCore } ⚡ [命令触发] trigger=['nte残虹bot最强面板', 'regex', '^(?P<char_name>[\u4e00-\u9fa5a-zA-Z0-9\U0001F300-\U0001FAFF\U00002600-\U000027BF\U00002B00-\U00002BFF\U00003200-\U000032FF-—·()()]{1,20}?)(?Pbot)?(?P最强)?(面板|信息|详情|面包|🍞)$'] 08-20 15:10:12 [info ] {SayuCore } ⚡ [命令触发] command=Event(bot_id='onebot', bot_self_id='BOT', msg_id='973759194', user_type='group', group_id='群号', user_id='QQ1', sender={'user_id': QQ1, 'nickname': '玉藻', 'card': '', 'role': 'admin', 'avatar': 'http://q1.qlogo.cn/g?b=qq&nk=QQ1&s=640'}, user_pm=0, content=[Message(type='text', data='.nte残虹bot最强面板')], WS_BOT_ID='NoneBot2', task_id='f1ab7df3-cf75-476d-a4f1-e858a2797a8a', task_event=None, real_bot_id='onebot', raw_text='nte残虹bot最强面板', command='', text='|nte残虹|bot|最强|面板|', image=None, image_list=[], image_id=None, image_id_list=[], audio_id=None, audio_id_list=[], at=None, at_list=[], is_tome=False, reply=None, reply_id=None, node=None, file_name=None, file=None, file_type=None, regex_group=(), regex_dict={}, meta_event_type=None, meta_event_data={}) 08-20 15:10:12 [info ] {SayuCore } [f1ab7df3] 📝 [TraceStart] trace_id=f1ab7df3-cf75-476d-a4f1-e858a2797a8a command=^(?P<char_name>[\u4e00-\u9fa5a-zA-Z0-9\U0001F300-\U0001FAFF\U00002600-\U000027BF\U00002B00-\U00002BFF\U00003200-\U000032FF-—·()()]{1,20}?)(?Pbot)?(?P最强)?(面板|信息|详情|面包|🍞)$ user_id=QQ1 trace_id=f1ab7df3-cf75-476d-a4f1-e858a2797a8a 08-20 15:10:12 [error ] {SayuCore } [f1ab7df3] ⚡ [SV] 执行时出现错误! trace_id=f1ab7df3-cf75-476d-a4f1-e858a2797a8a ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /gsuid_core/gsuid_core/sv.py:42 in wrapper │ │ │ │ 39 │ @wraps(func) │ │ 40 │ async def wrapper(bot: Bot, event: Event): │ │ 41 │ │ try: │ │ ❱ 42 │ │ │ result = await func(bot, event) │ │ 43 │ │ │ return result │ │ 44 │ │ except Exception as e: │ │ 45 │ │ │ logger.error(t("log.sv.error_occurred_executing", p0=event │ │ │ │ /gsuid_core/gsuid_core/plugins/NTEUID/NTEUID/nte_role/init.py:99 in │ │ nte_role_detail │ │ │ │ 96 │ block=True, │ │ 97 ) │ │ 98 async def nte_role_detail(bot: Bot, ev: Event): │ │ ❱ 99 │ char_name = ev.regex_dict["char_name"] │ │ 100 │ if ev.regex_dict.get("best"): │ │ 101 │ │ await run_strongest_panel(bot, ev, char_name, │ │ bot_scope=ev.regex_dict.get("scope") == "bot") │ │ 102 │ else: │ ╰──────────────────────────────────────────────────────────────────────────────╯ KeyError: 'char_name'

08-20 15:10:12 [error ] {SayuCore } 'char_name' trace_id=f1ab7df3-cf75-476d-a4f1-e858a2797a8a ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /gsuid_core/gsuid_core/sv.py:42 in wrapper │ │ │ │ 39 │ @wraps(func) │ │ 40 │ async def wrapper(bot: Bot, event: Event): │ │ 41 │ │ try: │ │ ❱ 42 │ │ │ result = await func(bot, event) │ │ 43 │ │ │ return result │ │ 44 │ │ except Exception as e: │ │ 45 │ │ │ logger.error(t("log.sv.error_occurred_executing", p0=event │ │ │ │ /gsuid_core/gsuid_core/plugins/NTEUID/NTEUID/nte_role/init.py:99 in │ │ nte_role_detail │ │ │ │ 96 │ block=True, │ │ 97 ) │ │ 98 async def nte_role_detail(bot: Bot, ev: Event): │ │ ❱ 99 │ char_name = ev.regex_dict["char_name"] │ │ 100 │ if ev.regex_dict.get("best"): │ │ 101 │ │ await run_strongest_panel(bot, ev, char_name, │ │ bot_scope=ev.regex_dict.get("scope") == "bot") │ │ 102 │ else: │ ╰──────────────────────────────────────────────────────────────────────────────╯ KeyError: 'char_name'

08-20 15:10:12 [info ] {SayuCore } [f1ab7df3] 📝 [TraceEnd] trace_id=f1ab7df3-cf75-476d-a4f1-e858a2797a8a command=^(?P<char_name>[\u4e00-\u9fa5a-zA-Z0-9\U0001F300-\U0001FAFF\U00002600-\U000027BF\U00002B00-\U00002BFF\U00003200-\U000032FF-—·()()]{1,20}?)(?Pbot)?(?P最强)?(面板|信息|详情|面包|🍞)$ duration=110ms logs=4 trace_id=f1ab7df3-cf75-476d-a4f1-e858a2797a8a 08-20 15:10:29 [info ] {SayuCore } [Receive] bot_id=onebot, bot_self_id=BOT, msg_id=335172092, user_type=group, group_id=群号2, user_id=QQ2, user_pm=6, content=[Message(type='text', data='6')], 08-20 15:11:01 [info ] {SayuCore } [Receive] bot_id=onebot, bot_self_id=BOT, msg_id=618320539, user_type=group, group_id=群号, user_id=QQ1, user_pm=0, content=[Message(type='text', data='.nte残虹最强面板')], 08-20 15:11:01 [info ] {SayuCore } ⚡ [命令触发] trigger=['nte残虹最强面板', 'regex', '^(?P<char_name>[\u4e00-\u9fa5a-zA-Z0-9\U0001F300-\U0001FAFF\U00002600-\U000027BF\U00002B00-\U00002BFF\U00003200-\U000032FF-—·()()]{1,20}?)(?Pbot)?(?P最强)?(面板|信息|详情|面包|🍞)$'] 08-20 15:11:01 [info ] {SayuCore } ⚡ [命令触发] command=Event(bot_id='onebot', bot_self_id='BOT', msg_id='618320539', user_type='group', group_id='群号', user_id='QQ1', sender={'user_id': QQ1, 'nickname': '玉藻', 'card': '', 'role': 'admin', 'avatar': 'http://q1.qlogo.cn/g?b=qq&nk=QQ1&s=640'}, user_pm=0, content=[Message(type='text', data='.nte残虹最强面板')], WS_BOT_ID='NoneBot2', task_id='c82189a6-8b4a-477d-b3a2-88212be2ad33', task_event=None, real_bot_id='onebot', raw_text='nte残虹最强面板', command='', text='|nte残虹||最强|面板|', image=None, image_list=[], image_id=None, image_id_list=[], audio_id=None, audio_id_list=[], at=None, at_list=[], is_tome=False, reply=None, reply_id=None, node=None, file_name=None, file=None, file_type=None, regex_group=(), regex_dict={}, meta_event_type=None, meta_event_data={}) 08-20 15:11:01 [info ] {SayuCore } [c82189a6] 📝 [TraceStart] trace_id=c82189a6-8b4a-477d-b3a2-88212be2ad33 command=^(?P<char_name>[\u4e00-\u9fa5a-zA-Z0-9\U0001F300-\U0001FAFF\U00002600-\U000027BF\U00002B00-\U00002BFF\U00003200-\U000032FF-—·()()]{1,20}?)(?Pbot)?(?P最强)?(面板|信息|详情|面包|🍞)$ user_id=QQ1 trace_id=c82189a6-8b4a-477d-b3a2-88212be2ad33 08-20 15:11:01 [error ] {SayuCore } [c82189a6] ⚡ [SV] 执行时出现错误! trace_id=c82189a6-8b4a-477d-b3a2-88212be2ad33 ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /gsuid_core/gsuid_core/sv.py:42 in wrapper │ │ │ │ 39 │ @wraps(func)uid_core/sv.py:42 in wrapper │ │ │ │ 39 │ @wraps(func) │ │ 40 │ async def wrapper(bot: Bot, event: Event): │ │ 41 │ │ try: │ │ ❱ 42 │ │ │ result = await func(bot, event) │ │ 43 │ │ │ return result │ │ 44 │ │ except Exception as e: │ │ 45 │ │ │ logger.error(t("log.sv.error_occurred_executing", p0=event │ │ │ │ /gsuid_core/gsuid_core/plugins/NTEUID/NTEUID/nte_role/init.py:99 in │ │ nte_role_detail │ │ 45 │ │ │ logger.error(t("log.sv.error_occurred_executing", p0=event │ │ │ │ /gsuid_core/gsuid_core/plugins/NTEUID/NTEUID/nte_role/init.py:99 in │ │ nte_role_detail │ │ │ │ 96 │ block=True, │ │ 97 ) │ │ 98 async def nte_role_detail(bot: Bot, ev: Event): │ │ ❱ 99 │ char_name = ev.regex_dict["char_name"] │ │ 100 │ if ev.regex_dict.get("best"): │ │ 101 │ │ await run_strongest_panel(bot, ev, char_name, │ │ bot_scope=ev.regex_dict.get("scope") == "bot") │ │ 102 │ else: │ ╰──────────────────────────────────────────────────────────────────────────────╯ KeyError: 'char_name'

08-20 15:11:50 [info ] {SayuCore } [2f88113d] 📝 [TraceEnd] trace_id=2f88113d-51da-48ea-b3b4-46464196a386 command=^(?P<char_name>[\u4e00-\u9fa5a-zA-Z0-9\U0001F300-\U0001FAFF\U00002600-\U000027BF\U00002B00-\U00002BFF\U00003200-\U000032FF-—·()()]{1,20}?)(?Pbot)?(?P最强)?(面板|信息|详情|面包|🍞)$ duration=111ms logs=4 trace_id=2f88113d-51da-48ea-b3b4-46464196a386

Tamamoimoto avatar Aug 20 '26 07:08 Tamamoimoto