From 4e55290735d326261459fedb3ec60c12fa57b842 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Tue, 5 Mar 2024 02:39:10 +0900 Subject: [PATCH] add model, axmodel, startswith cbs --- src/ts/parser.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ts/parser.ts b/src/ts/parser.ts index be806927..5dd86449 100644 --- a/src/ts/parser.ts +++ b/src/ts/parser.ts @@ -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')){