change to move prompt
This commit is contained in:
parent
b4b05f5548
commit
d7d4ccfe43
1 changed files with 5 additions and 5 deletions
|
|
@ -270,11 +270,11 @@ class SessionHandler(dict):
|
||||||
else:
|
else:
|
||||||
rkwargs[key] = [[_validate(data)], {}]
|
rkwargs[key] = [[_validate(data)], {}]
|
||||||
rkwargs[key][1]["options"] = dict(options)
|
rkwargs[key][1]["options"] = dict(options)
|
||||||
# make sure that any "text" message will be processed first
|
# make sure that any "prompt" message will be processed last
|
||||||
# by putting it at the beginning
|
# by moving it to the end
|
||||||
if "text" in rkwargs:
|
if "prompt" in rkwargs:
|
||||||
text = rkwargs.pop("text")
|
prompt = rkwargs.pop("prompt")
|
||||||
rkwargs = { "text": text } | rkwargs
|
rkwargs["prompt"] = prompt
|
||||||
return rkwargs
|
return rkwargs
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue