exports.name = "bonus"; exports.description = ":star: Sums and calculates bonus for player stat numbers."; exports.usage = "< [inf optional extra numbers]"; exports.example = "< { let is1nan = false; if (!args[0]) return message.channel.send("Not enough arguments, consult < { if (isNaN(parseInt(arg))) { is1nan = true; } arg = parseInt(arg); }); if (is1nan) return message.channel.send( "You have provided invalid arguments to this command, please consult < { if (arg > 2000) arg = 2000; // just dont bother for anything higher than 2000 sum += parseInt(arg); }); sum--; message.channel.send( `Will reach ${sum}, ${Math.ceil(sum * 1.4)} with bonus.` ); };