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

Predictions Configuration

When dashboard-backed configuration is enabled, use the Predictions dashboard first because live settings may be stored in MongoDB instead of reading only the local JSON5 file.

Config Files

  • Runtime config: configuration/predictions.json5
  • English template: plugins/predictions/data/configs/en-predictions.json5
  • German template: plugins/predictions/data/configs/de-predictions.json5

General And Prediction Settings

FieldTypeDefaultNotes
enabledbooleantrueEnables creation, voting, management, and automatic locking. Stats remain available.
allow_vote_changesbooleantrueLets a member replace an existing vote.
auto_lock_interval_msinteger60000How often the plugin checks timed predictions.
prediction.min_choicesinteger2Minimum accepted answer count.
prediction.max_choicesinteger10Maximum accepted answer count.
prediction.max_question_lengthinteger200Maximum question length.
prediction.max_choice_lengthinteger80Maximum length for one answer.
prediction.default_lock_after_msinteger0Default delay before locking. 0 means manual lock.
prediction.show_vote_counts_before_resolvebooleanfalseShows live vote totals before resolution when enabled.
prediction.delete_buttons_when_lockedbooleantrueRemoves vote buttons after locking.

Wagers

FieldDefaultBehavior
wagers.enabledtrueEnables Athena coin wagers.
wagers.allow_zero_wagertrueAllows votes without coins. Required for zero-wager buttons.
wagers.min_wager0Minimum positive wager.
wagers.max_wager1000Global maximum. 0 means no global cap.
wagers.default_max_wager0Default per-prediction cap. 0 uses the global cap.
wagers.require_economy_balancetrueRejects wagers above the member’s available coins.
wagers.refund_wager_on_vote_changetrueCredits the previous wager before charging the replacement.
wagers.refund_losers_on_canceltrueReturns wagers when a prediction is cancelled from the dashboard.

When both global and per-prediction caps are positive, the lower value wins.

Rewards

FieldDefaultBehavior
rewards.xp_enabledtruePays XP to winners.
rewards.base_xp25Default winner XP.
rewards.coins_enabledtruePays coins to winners.
rewards.base_coins50Default winner coins.
rewards.default_roles[]Role IDs awarded to winners by default.
rewards.return_wager_on_wintrueReturns the winning member’s original wager.
rewards.wager_profit_multiplier1Additional coin profit based on the wager.

Creation and reward-management commands can override XP, coins, and roles for the whole prediction. choice_rewards can assign different rewards to each answer using syntax such as:

1:xp=100,coins=250,roles=123+456|2:roles=789

Streak Bonuses And Milestones

rewards.streak_bonus controls the bonus per consecutive correct prediction, the maximum multiplier, and whether it applies to XP, coins, or wager profit.

Each rewards.milestone_roles entry can require a total number of correct predictions, a current streak, or both. Set remove_when_streak_lost when a streak role should be removed after an incorrect result.

Vote Buttons

FieldDefaultNotes
interactions.enable_vote_buttonstrueAdds vote buttons to eligible prediction messages.
interactions.max_button_choices5Maximum answer count displayed as buttons.
interactions.button_styleblueStyle used for vote buttons.

Permissions And Language

permissions sets the Athena levels for the base command, creation, closing, resolution, and reward management. The lang section controls all slash names, responses, status labels, button text, audit reasons, and embeds.

Command and option names must follow Discord’s lowercase slash-command naming rules. Restart AthenaBot after changing them.

Predictions ships English and German config and dashboard templates.