refactor: Add test_lorebook command to processMultiCommand

This commit is contained in:
kwaroran
2024-05-27 07:25:36 +09:00
parent 5f94ad2394
commit 5477d9f6be

View File

@@ -5,6 +5,7 @@ import { alertInput, alertMd, alertNormal, alertSelect, alertToast } from "../al
import { sayTTS } from "./tts";
import { risuChatParser } from "../parser";
import { sendChat } from ".";
import { loadLoreBookV3Prompt } from "./lorebook";
export async function processMultiCommand(command:string) {
let pipe = ''
@@ -213,6 +214,11 @@ async function processCommand(command:string, pipe:string):Promise<false | strin
pipe = (chat.scriptstate['$' + namedArg['key']]).toString() ?? 'null'
return pipe
}
case 'test_lorebook':{
const p = await loadLoreBookV3Prompt()
console.log(p)
return JSON.stringify(p)
}
case '?':{
alertMd(`
# /input [text]