refactor: Add test_lorebook command to processMultiCommand
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user