var Nf = new Intl.NumberFormat('en-US');

module.exports = {
	desc: 'Roll a number between the given range.',
	usage: '[[min-]max]',
	cooldown: 2,
	aliases: ['random'],
	task(bot, msg, suffix) {
		let args = suffix.match(/(?:(\d+)-)?(\d+)/);
		let roll = args === null ? [1, 10] : [parseInt(args[1]) || 1, parseInt(args[2])];
		bot.createMessage(msg.channel.id, `${msg.author.username} rolled **${Nf.format(roll[0])}-${Nf.format(roll[1])}** and got **${Nf.format(~~((Math.random() * (roll[1] - roll[0] + 1)) + roll[0]))}**.`);
	}
}
@@ -235,16 +235,198 @@
 %5Cd+)/);%0A
+%09%09if (args%5B1%5D %7C%7C args%5B2%5D %3E= Number.MAX_SAFE_INTEGER) %7B%0A%09%09%09bot.createMessage(msg.channel.id, 'That number is too big for me to process, please use a smaller number.');%0A%09%09%09return;%0A%09%09%7D%0A
 %09%09let ro

add max int check to roll