Add 'tonumber' function to parser.ts

This commit is contained in:
kwaroran
2024-03-24 19:08:19 +09:00
parent 2fe9ca2704
commit 008827c9b5

View File

@@ -754,6 +754,11 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
return chat?.message[chatID - 1]?.data ?? 'Out of range'
}
case 'tonumber':{
return arra[1].split('').filter((v) => {
return !isNaN(Number(v))
}).join('')
}
}
}
if(p1.startsWith('random')){