feat: Add first_msg_index curly syntax

This commit is contained in:
Sunho Kim
2024-05-23 19:29:09 -07:00
parent 0ce01d8ca1
commit 27ef7b8112

View File

@@ -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 ''