[feat] add automark

This commit is contained in:
kwaroran
2023-07-18 00:28:44 +09:00
parent 44c81e10f9
commit 1d84f0cae1
5 changed files with 69 additions and 85 deletions

View File

@@ -6,6 +6,7 @@ import { alertError, alertNormal } from "../alert";
import { language } from "src/lang";
import { selectSingleFile } from "../util";
import { risuChatParser as risuChatParserOrg } from "../parser";
import { autoMarkPlugin } from "../plugins/automark";
const dreg = /{{data}}/g
const randomness = /\|\|\|/g
@@ -139,6 +140,9 @@ export function processScriptFull(char:character|groupChat, data:string, mode:Sc
}
}
}
if(db.officialplugins.automark){
data = autoMarkPlugin(data)
}
return {data, emoChanged}
}