From bf886325ed301551cd726f3bca69695571b47642 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Mon, 15 Jan 2024 12:34:38 +0900 Subject: [PATCH] Add regex move top and move bottom --- src/ts/process/scripts.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ts/process/scripts.ts b/src/ts/process/scripts.ts index b3b20c4f..e6d8db4a 100644 --- a/src/ts/process/scripts.ts +++ b/src/ts/process/scripts.ts @@ -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){