Skip to main content

calculator

This is an example of calculator

With Customization

const simplydjs = require("simply-djs");

messageCreate Event (calculator command)

// messageCreate Event
simplydjs.calculator(message, {
embedColor: "hex code"
});
TIP

Slash Support

The package supports Auto Slash Recognition ! So no more slash options.

Slash command format

{
name: 'calculator',
description: 'Just a casual calculator. Using simply-djs'
}

Output

calc

Options for calculator function

OptionsTypeRequiredDefaultDescription
slashBooleanโœ˜falseSlash Support for the Calculator (need to be in a slash command)

Embed

OptionsTypeRequiredDefaultDescription
embedColorHex Codeโœ˜#075FFFColor of the Embed which has the Result for Calculator
creditBooleanโœ˜trueCredit the package