From 5a4a1d7071ad1576786563259b4ad3713519b52d Mon Sep 17 00:00:00 2001 From: kwaroran Date: Wed, 3 Apr 2024 19:56:37 +0900 Subject: [PATCH] Fix incorrect condition in parser.ts --- src/ts/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/parser.ts b/src/ts/parser.ts index 8da7930c..b5f8ac8d 100644 --- a/src/ts/parser.ts +++ b/src/ts/parser.ts @@ -843,7 +843,7 @@ const matcher = (p1:string,matcherArg:matcherArg) => { if(p1.startsWith('pick')){ const selchar = db.characters[get(selectedCharID)] const rand = sfc32(uuidtoNumber(selchar.chaId), chatID, uuidtoNumber(selchar.chaId), chatID) - if(p1.startsWith('random::')){ + if(p1.startsWith('pick::')){ const randomIndex = Math.floor(rand() * (arra.length - 1)) + 1 if(matcherArg.tokenizeAccurate){ return arra[0]