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