Add number support to chat parser

This commit is contained in:
7cc5c4f330d47060 2024-07-16 18:27:19 -04:00
parent ffaa85a096
commit b25aad71a1

View file

@ -26,6 +26,8 @@ const parse=function(_data, l, resetColor){
} catch(e){
data={text:_data, color: "reset"}
}
} else if(typeof _data == "number"){
data={text:_data+"", color: "reset"}
} else {
data=_data;
}