[fix] greater not working

This commit is contained in:
kwaroran
2023-07-25 11:11:58 +09:00
parent 616800bd97
commit 0548f2d8f5
2 changed files with 6 additions and 5 deletions

View File

@@ -449,16 +449,16 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
return (arra[1] !== arra[2]) ? '1' : '0' return (arra[1] !== arra[2]) ? '1' : '0'
} }
case 'greater':{ case 'greater':{
return (arra[1] > arra[2]) ? '1' : '0' return (Number(arra[1]) > Number(arra[2])) ? '1' : '0'
} }
case 'less':{ case 'less':{
return (arra[1] < arra[2]) ? '1' : '0' return (Number(arra[1]) < Number(arra[2])) ? '1' : '0'
} }
case 'greater_equal':{ case 'greater_equal':{
return (arra[1] >= arra[2]) ? '1' : '0' return (Number(arra[1]) >= Number(arra[2])) ? '1' : '0'
} }
case 'less_equal':{ case 'less_equal':{
return (arra[1] <= arra[2]) ? '1' : '0' return (Number(arra[1]) <= Number(arra[2])) ? '1' : '0'
} }
} }
} }

View File

@@ -407,6 +407,7 @@ export interface groupChat{
backgroundHTML?:string, backgroundHTML?:string,
reloadKeys?:number reloadKeys?:number
backgroundCSS?:string backgroundCSS?:string
oneAtTime?:boolean
} }
export interface botPreset{ export interface botPreset{