Add commas to points?


PhantomBot Version: 2.3.9
OS Version: Windows 7 6.1
Java Version: 1.8.0_141-b15
Browser and Version (for Panel Support): Chrome 61.0.3163.100
Stock PhantomBot: No (Simply modified games-adventureSystem.js and main.js text to change game branding. No core changes)

Some of my users have a large amount of points. Is it possible to modify the code to add 1000s commas to points numbers when someone types !points or !top? e.g. You have 32,782 points

Thank you


This could be done, however it would have to be configurable since it varies from country to county.


Is there a quick code snippet I could use to simply add a comma every three places? e.g. 384,278,383

Thanks again


There is not, this would require some regex work.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.