A math utility module for ForgeScript, providing expressive and easy-to-use mathematical functions.
npm install github:weebforge/ForgeMathnpm install github:weebforge/ForgeMath#devHere 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]`
});If you need any assistance, don't hesitate to reach out by opening a support form in the official BotForge Discord server! :D