JustUndertaker / ComWeChatBotClient

基于COM通信的微信pc hook应用端,支持Onebot12协议
https://justundertaker.github.io/ComWeChatBotClient/
GNU Affero General Public License v3.0
272 stars 55 forks source link

handle.got的prompt方法超时 #62

Open barryblueice opened 5 months ago

barryblueice commented 5 months ago

案例代码:

@today_weather.handle()
async def _(event: Event,bot: Bot,state: T_State):
        state["state"] = "wait"
        param = str(event.get_message()).strip()
        replace_data = ["天气","/weather","weather","的"]
        for r in replace_data:
            param = param.replace(r,"",1).replace(" ","")
        if param != "":
            state["city"] = param

@today_weather.got("city",prompt="你想要查询哪里的天气呢?<提示:可随时回复0以退出天气查询>")
# more code...

此时nonebot2中显示连接已被关闭:

image

接着提示超时:

image

此时必须要关闭机器人和客户端(包括微信本身),并重新开启。

client输出:

image

另外,可否出一个源码部署+配置教程,GitHub中的源码完全跑不起来,一跑一堆错。