text: const { Command, utils } = require("discord-bot");
  const { maxDice, stats } = require("../utils/dice");
  
  module.exports = new Command("stats", function (message, args) {
      let count = Number(args[1]) || 4, results, reply;
      if (results = stats(count)) {
          reply = `\`${results.join(", ")}\``;
      }
      else {
          reply = `\`${this.usage}\`\n${this.subtitle}`;
      }
      return utils.replyVerbose(message, reply);
  }, {
      usage: "@kennybot stats [dice count]",
      description: "Rolls a set of stats based on a number of d6s, best three summed with 1s rerolled once",
      subtitle: `Defaults to 4d6. Max dice count is ${maxDice}`
  });
  