Skip to content

mari-rs/calculator-enmity-plugin

Repository files navigation

calculator-enmity-plugin

Overview

The Enmity Calculator Plugin is designed for use with the popular Discord client mod "Enmity." This plugin provides a powerful calculator functionality accessible through slash commands, allowing users to perform various mathematical operations, including addition, subtraction, multiplication, and division. The plugin now also supports pi calculations and includes an option to copy the result to the clipboard, enhancing its versatility and usefulness.

Features

  • Perform basic arithmetic operations: addition, subtraction, multiplication, and division.
  • Support for calculations involving floating-point numbers (decimals).
  • Calculate using the mathematical constant "pi" for more complex computations.
  • Option to copy the result of calculations to the clipboard for easy sharing.

Prebuilt Version

If you just want to use the plugin without building it yourself, you can find the prebuilt version in the "dist" folder.

Building

Requirements to build

How to build

  1. Open your terminal (or command prompt) and navigate to the repository directory:
    cd /path/to/your/repo
  2. Install dependencies using npm:
    npm install
  3. Build the plugin using this command:
    npm run build

How to use the plugin

  1. Install the plugin like you would install any other enmity plugin, the direct link for the plugin is here
  2. access the plugin by typing in the chat /calculator and have fun using it!
  3. here is also a little tutorial video <3