Skip to Content
Haven Documentation is the shared home for product guides, plugin setup, and release docs.
PluginsCalculatorConfiguration

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

FieldTypeDefault / Template ValueNotes
enabledbooleantrueTurns this part of the plugin on or off.
debugbooleanfalseBoolean switch used by the plugin.
max_digitsnumber20Limit used to prevent spam or oversized output.
decimal_precisionnumber4Source-backed config field used by this plugin.
history_sizenumber10Source-backed config field used by this plugin.
history_max_agenumber6Limit used to prevent spam or oversized output.
buttons.colors.numbersstringSecondarySource-backed config field used by this plugin.
buttons.colors.operatorsstringPrimarySource-backed config field used by this plugin.
buttons.colors.equalsstringSuccessSource-backed config field used by this plugin.
buttons.colors.clearstringDangerSource-backed config field used by this plugin.
buttons.colors.backspacestringDangerSource-backed config field used by this plugin.
buttons.colors.specialstringSecondarySource-backed config field used by this plugin.
embeds.colors.successstring#43B581Controls text or embed output shown in Discord.
embeds.colors.errorstring#F04747Controls text or embed output shown in Discord.
embeds.colors.infostring#7289DAControls text or embed output shown in Discord.
embeds.colors.warningstring#FAA61AControls text or embed output shown in Discord.
messages.errors.no_permissionstring❌ You don’t have permission to use this command.Permission key, role, or access setting used before the action runs.
messages.errors.invalid_expressionstring❌ Invalid mathematical expression.Controls text or embed output shown in Discord.
messages.errors.division_by_zerostring❌ Cannot divide by zero.Controls text or embed output shown in Discord.
messages.errors.too_complexstring❌ Expression too complex to evaluate.Controls text or embed output shown in Discord.
messages.errors.max_digits_exceededstring❌ Result exceeds maximum digit limit ({max_digits}).Controls text or embed output shown in Discord.
messages.success.resultstring✅ {expression} = {result}Controls text or embed output shown in Discord.
messages.info.history_emptystringℹ️ No calculation history available.Controls text or embed output shown in Discord.
messages.info.history_clearedstring🧹 Calculation history cleared.Controls text or embed output shown in Discord.
ui.titlestring🧮 CalculatorSource-backed config field used by this plugin.
ui.history_titlestring📋 Calculation HistorySource-backed config field used by this plugin.
ui.result_labelstringResult:Source-backed config field used by this plugin.
ui.input_labelstringInput: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.