Skip to content

nonebot 如何写多对话呢? #589

Closed Answered by yanyongyu
Charles-Hello asked this question in 问答
Discussion options

You must be logged in to vote

每一轮对话一问一答都是一个 got,你多写几个就是多轮对话了啊

matcher = on_xxx

@matcher.got("name", prompt="token 名字")
async def handle_name():
    ...

@matcher.got("type", prompt="token 类型")
async def handle_type():
    ...

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Charles-Hello
Comment options

@Charles-Hello
Comment options

Answer selected by Charles-Hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
问答
Labels
None yet
2 participants