Add 'remaind' function to calculate remainder

This commit is contained in:
kwaroran
2024-04-04 06:52:20 +09:00
parent d7f0892c14
commit 9d55f61230

View File

@@ -807,6 +807,9 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
case 'abs':{
return Math.abs(Number(arra[1])).toString()
}
case 'remaind':{
return (Number(arra[1]) % Number(arra[2])).toString()
}
case 'previous_chat_log':{
const selchar = db.characters[get(selectedCharID)]
const chat = selchar?.chats?.[selchar.chatPage]