Calculator Configuration
The table below is generated from the local JSON5 config templates found for this plugin. When dashboard-backed configuration is enabled, use the dashboard first because live settings may be stored in MongoDB instead of only reading local JSON5 files.
Config Files
- Source-backed docs were generated from the local plugin source and JSON5 templates.
- Plugin entry:
main.js - Config templates:
en-calculator.json5
Main Fields
| Field | Type | Default / Template Value | Notes |
|---|---|---|---|
enabled | boolean | true | Turns this part of the plugin on or off. |
debug | boolean | false | Boolean switch used by the plugin. |
max_digits | number | 20 | Limit used to prevent spam or oversized output. |
decimal_precision | number | 4 | Source-backed config field used by this plugin. |
history_size | number | 10 | Source-backed config field used by this plugin. |
history_max_age | number | 6 | Limit used to prevent spam or oversized output. |
buttons.colors.numbers | string | Secondary | Source-backed config field used by this plugin. |
buttons.colors.operators | string | Primary | Source-backed config field used by this plugin. |
buttons.colors.equals | string | Success | Source-backed config field used by this plugin. |
buttons.colors.clear | string | Danger | Source-backed config field used by this plugin. |
buttons.colors.backspace | string | Danger | Source-backed config field used by this plugin. |
buttons.colors.special | string | Secondary | Source-backed config field used by this plugin. |
embeds.colors.success | string | #43B581 | Controls text or embed output shown in Discord. |
embeds.colors.error | string | #F04747 | Controls text or embed output shown in Discord. |
embeds.colors.info | string | #7289DA | Controls text or embed output shown in Discord. |
embeds.colors.warning | string | #FAA61A | Controls text or embed output shown in Discord. |
messages.errors.no_permission | string | ❌ You don’t have permission to use this command. | Permission key, role, or access setting used before the action runs. |
messages.errors.invalid_expression | string | ❌ Invalid mathematical expression. | Controls text or embed output shown in Discord. |
messages.errors.division_by_zero | string | ❌ Cannot divide by zero. | Controls text or embed output shown in Discord. |
messages.errors.too_complex | string | ❌ Expression too complex to evaluate. | Controls text or embed output shown in Discord. |
messages.errors.max_digits_exceeded | string | ❌ Result exceeds maximum digit limit ({max_digits}). | Controls text or embed output shown in Discord. |
messages.success.result | string | ✅ {expression} = {result} | Controls text or embed output shown in Discord. |
messages.info.history_empty | string | ℹ️ No calculation history available. | Controls text or embed output shown in Discord. |
messages.info.history_cleared | string | 🧹 Calculation history cleared. | Controls text or embed output shown in Discord. |
ui.title | string | 🧮 Calculator | Source-backed config field used by this plugin. |
ui.history_title | string | 📋 Calculation History | Source-backed config field used by this plugin. |
ui.result_label | string | Result: | Source-backed config field used by this plugin. |
ui.input_label | string | Input: | Source-backed config field used by this plugin. |
Notes
- Keep Discord IDs as strings.
- After changing local JSON5 files, restart AthenaBot or reload the plugin so the config manager reads the new values.
- If a dashboard page exists for this plugin, prefer editing there during normal operation.