H-K-Y / Genshin_Impact_bot

原神bot,这是一个基于nonebot和HoshinoBot的原神娱乐及信息查询插件,包含原神抽卡,丘丘语翻译,找资源点等功能
GNU General Public License v3.0
389 stars 85 forks source link

查询资源图时报错 #47

Closed 2510206409 closed 3 years ago

2510206409 commented 3 years ago

[2021-09-11 10:43:20,876 原神资源查询] INFO: Message 418011422 triggered inquire_resource_points. [2021-09-11 10:43:20,882 原神资源查询] ERROR: <class 'ValueError'> occured when inquire_resource_points handling message 418011422. [2021-09-11 10:43:20,886 原神资源查询] ERROR: the msg argument is not recognized Traceback (most recent call last): File "C:\Users\Administrator\Desktop\HoshinoBot\hoshino\msghandler.py", line 28, in handle_message await service_func.func(bot, event) File "C:\Users\Administrator\Desktop\HoshinoBot\hoshino\modules\Genshin_Impact_bot\query_resource_points__init__.py", line 15, in inquire_resource_points await bot.send(ev, get_resource_map_mes(resource_name), at_sender=True) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\aiocqhttp__init.py", line 249, in send msg = message if isinstance(message, Message) else Message(message) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\aiocqhttp\message.py", line 381, in init__ raise ValueError('the msg argument is not recognized') ValueError: the msg argument is not recognized C:\Users\Administrator\Desktop\HoshinoBot\hoshino\msghandler.py:33: RuntimeWarning: coroutine 'get_resource_map_mes' was never awaited service_func.sv.logger.exception(e) RuntimeWarning: Enable tracemalloc to get the object allocation traceback

H-K-Y commented 3 years ago

查询函数调用忘了加 await 了 你git pull一下再试试

2510206409 commented 3 years ago

查询函数调用忘了加await 了

感谢,已解决