This commit is contained in:
ebolam
2022-09-07 15:45:02 -04:00

View File

@@ -4018,10 +4018,13 @@ def actionsubmit(data, actionmode=0, force_submit=False, force_prompt_gen=False,
data = f"\n\n> {data}\n"
# "Chat" mode
print(koboldai_vars.chatmode)
print(koboldai_vars.gamestarted)
if(koboldai_vars.chatmode and koboldai_vars.gamestarted):
data = re.sub(r'\n+', ' ', data)
if(len(data)):
data = f"\n{koboldai_vars.chatname}: {data}\n"
print("Chat Mode Data: {}".format(data))
# If we're not continuing, store a copy of the raw input
if(data != ""):