feat: add triggercode

This commit is contained in:
kwaroran
2024-06-29 00:45:57 +09:00
parent 39e7a8df8b
commit 8a94ef938e
5 changed files with 67 additions and 5 deletions

View File

@@ -2026,6 +2026,7 @@ export async function risuCommandParser(da:string, arg:{
funcName?:string
passed?:string[],
recursiveCount?:number
lowLevelAccess?:boolean
} = {}):Promise<{[key:string]:string}>{
const db = arg.db ?? get(DataBase)
const aChara = arg.chara
@@ -2068,7 +2069,8 @@ export async function risuCommandParser(da:string, arg:{
consistantChar: false,
funcName: arg.funcName ?? null,
text: da,
recursiveCount: recursiveCount
recursiveCount: recursiveCount,
lowLevelAccess: arg.lowLevelAccess ?? false
}
let tempVar:{[key:string]:string} = {}