add model, axmodel, startswith cbs

This commit is contained in:
kwaroran
2024-03-05 02:39:10 +09:00
parent a15c10763d
commit 4e55290735

View File

@@ -629,6 +629,12 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
case 'br':{
return '\n'
}
case 'model':{
return db.aiModel
}
case 'axmodel':{
return db.subModel
}
}
const arra = p1.split("::")
if(arra.length > 1){
@@ -687,6 +693,9 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
}
return Buffer.from(arra[2], 'base64').toString('utf-8')
}
case 'startswith':{
return arra[1].startsWith(arra[2]) ? '1' : '0'
}
}
}
if(p1.startsWith('random')){