[fix] greater not working
This commit is contained in:
@@ -449,16 +449,16 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
|
||||
return (arra[1] !== arra[2]) ? '1' : '0'
|
||||
}
|
||||
case 'greater':{
|
||||
return (arra[1] > arra[2]) ? '1' : '0'
|
||||
return (Number(arra[1]) > Number(arra[2])) ? '1' : '0'
|
||||
}
|
||||
case 'less':{
|
||||
return (arra[1] < arra[2]) ? '1' : '0'
|
||||
return (Number(arra[1]) < Number(arra[2])) ? '1' : '0'
|
||||
}
|
||||
case 'greater_equal':{
|
||||
return (arra[1] >= arra[2]) ? '1' : '0'
|
||||
return (Number(arra[1]) >= Number(arra[2])) ? '1' : '0'
|
||||
}
|
||||
case 'less_equal':{
|
||||
return (arra[1] <= arra[2]) ? '1' : '0'
|
||||
return (Number(arra[1]) <= Number(arra[2])) ? '1' : '0'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -407,6 +407,7 @@ export interface groupChat{
|
||||
backgroundHTML?:string,
|
||||
reloadKeys?:number
|
||||
backgroundCSS?:string
|
||||
oneAtTime?:boolean
|
||||
}
|
||||
|
||||
export interface botPreset{
|
||||
|
||||
Reference in New Issue
Block a user