Make sure we don't keep the trimmed memory in `randomGameRequest()`

This commit is contained in:
Gnome Ann 2021-12-30 01:45:27 -05:00
parent 7645db9dd4
commit de8a5046df
1 changed files with 3 additions and 2 deletions

View File

@ -4249,9 +4249,10 @@ def randomGameRequest(topic, memory=""):
return
vars.recentrng = topic
newGameRequest()
_memory = memory
if(len(memory) > 0):
memory = memory.rstrip() + "\n\n"
vars.memory = memory + "You generate the following " + topic + " story concept :"
_memory = memory.rstrip() + "\n\n"
vars.memory = _memory + "You generate the following " + topic + " story concept :"
vars.lua_koboldbridge.feedback = None
actionsubmit("", force_submit=True, force_prompt_gen=True)
vars.memory = memory