You need to use the isnum operator in an if statement. For example,
on @*:text:!cool *:#channel:{
if ($2 !isnum) {
msg # That's the wrong format, use a number $nick $+ !
}
else {
msg # That's right $nick $+ , you specified a number!
}
}
For further help, see the following help file pages:
/help ON TEXT
/help if then else
Regards,