From 27ef7b81128372d3844fd6b47222c0b6fa70bd42 Mon Sep 17 00:00:00 2001 From: Sunho Kim Date: Thu, 23 May 2024 19:29:09 -0700 Subject: [PATCH] feat: Add first_msg_index curly syntax --- src/ts/parser.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ts/parser.ts b/src/ts/parser.ts index babb2307..28c74aa4 100644 --- a/src/ts/parser.ts +++ b/src/ts/parser.ts @@ -535,6 +535,13 @@ const matcher = (p1:string,matcherArg:matcherArg) => { case 'chat_index':{ return chatID.toString() } + case 'first_msg_index':{ + if(chatID !== -1){ + const selchar = db.characters[get(selectedCharID)] + return selchar.firstMsgIndex + } + return null; + } case 'blank': case 'none':{ return ''