How to use rpg-dice-roller - 1 common examples

To help you get started, we’ve selected a few rpg-dice-roller examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Snooful / Snooful / src / commands / chance / customroll.js View on Github external
const rpgDiceRoller = require("rpg-dice-roller");
const DiceRoller = new rpgDiceRoller.DiceRoller();

module.exports = {
	aliases: [
		"customdice",
		"croll",
		"cdice",
	],
	builder: build => {
		build.positional("dice", {
			describe: "The dice you want to roll, in standard RPG format.",
			type: "string",
		});
	},
	command: "customroll",
	describe: "Rolls dice with a custom notation.",
	handler: args => {

rpg-dice-roller

An advanced JS based dice roller that can roll various types of dice and modifiers, along with mathematical equations.

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis

Popular rpg-dice-roller functions