Skip to content
This repository was archived by the owner on Apr 21, 2024. It is now read-only.
This repository was archived by the owner on Apr 21, 2024. It is now read-only.

handle.got的prompt方法超时 #62

Description

@barryblueice

案例代码:

@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中的源码完全跑不起来,一跑一堆错。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions