UNPKG

probot-tax-npm

Version:
22 lines (15 loc) 466 B
const probot = require('probot-tax-pkg') then.. ``` client.on('message', msg => { if(msg.content.startsWith(prefix + "tax")){ const args = msg.content.split(" ").slice(1).join(" ") const args2 = args.replace("k","000").replace("m", "000000").replace('M', "000000").replace('K', "000") if(!args) return msg.channel.send(probot(args2)) } }) ``` Example: -tax 10K Result: 1000 GitHub: https://github.com/BADBOY671/ProBot-Tax-Pkg