Skip to content

A math utility module for ForgeScript, providing expressive and easy-to-use mathematical functions.

License

Notifications You must be signed in to change notification settings

weebforge/ForgeMath

Repository files navigation

ForgeMath

A math utility module for ForgeScript, providing expressive and easy-to-use mathematical functions.

Installation

From GitHub (recommended)

npm install github:weebforge/ForgeMath

For dev version

npm install github:weebforge/ForgeMath#dev

Setup

Here is a small setup with an example code.

// import { ForgeMath } from "@weebforge/math";
const { ForgeMath } = require("@weebforge/math");

const client = new ForgeClient({
  extensions: [
    new ForgeMath()
  ]
});

client.commands.addCommand({
  name: "factorial",
  type: "messageCreate",
  code: `5! = $factorial[5]`
});

Support

If you need any assistance, don't hesitate to reach out by opening a support form in the official BotForge Discord server! :D

About

A math utility module for ForgeScript, providing expressive and easy-to-use mathematical functions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •