Add unixtime function to parser.ts
This commit is contained in:
@@ -733,7 +733,9 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
|
|||||||
case 'prefill_supported':{
|
case 'prefill_supported':{
|
||||||
return db.aiModel.startsWith('claude') ? '1' : '0'
|
return db.aiModel.startsWith('claude') ? '1' : '0'
|
||||||
}
|
}
|
||||||
|
case 'unixtime':{
|
||||||
|
return (Date.now() / 1000).toFixed(2)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const arra = p1.split("::")
|
const arra = p1.split("::")
|
||||||
if(arra.length > 1){
|
if(arra.length > 1){
|
||||||
|
|||||||
Reference in New Issue
Block a user