Add regex move top and move bottom

This commit is contained in:
kwaroran
2024-01-15 12:34:38 +09:00
parent 5d7a0017dd
commit bf886325ed

View File

@@ -118,6 +118,16 @@ export async function processScriptFull(char:character|groupChat|simpleCharacter
selchar.chats[selchar.chatPage].message[chatID].data = data
data = data.replace(reg, "")
}
if(outScript.startsWith('@@move_top')){
const out = outScript.split(' ', 2)[1]
data.replace(reg, '')
data = out + data
}
if(outScript.startsWith('@@move_bottom')){
const out = outScript.split(' ', 2)[1]
data.replace(reg, '')
data = data + out
}
}
else{
if(outScript.startsWith('@@repeat_back') && chatID !== -1){