Predictions Setup
Requirements
- AthenaBot 2.2.0 or newer
- The
coreplugin enabled - A default prediction channel
- An optional staff log channel
- No extra Node packages
Installation
- Place the
predictionsfolder inplugins/. - Start AthenaBot once to generate
configuration/predictions.json5. - Use
/setupto assignpredictions_default_channel. - Assign
predictions_log_channelif staff should receive activity logs. - Review wager, reward, streak, and permission settings.
- Restart AthenaBot after changing the local config.
- Create a test prediction, vote from a member account, lock it, and resolve it.
Discord Permissions
AthenaBot needs:
- View Channel, Send Messages, and Embed Links in prediction channels
- The same permissions in the optional log channel
- Manage Roles for winner and milestone role rewards
- A bot role above every reward role it needs to assign
Recommended Permission Setup
permissions: {
prediction_command: "everyone",
create_prediction: "admin",
close_prediction: "admin",
resolve_prediction: "admin",
manage_rewards: "admin"
}The command permission controls access to /prediction. The action-specific
permissions are checked again before management actions run.
First Prediction
Run a command similar to:
/prediction create question:Will we reach the goal? answers:Yes|No lock_after:30mAnswers are separated with |. The channel option is optional: the plugin uses
predictions_default_channel, then the current channel if no default is set.
Safe Wager Test
- Use a small
wagers.max_wagerand a disposable member account. - Place a vote with
/prediction voteand confirm coins are deducted. - Change the vote and confirm the previous wager is handled as configured.
- Resolve the correct answer and verify the wager return, profit, XP, and coins.
- Create another prediction and cancel it from the dashboard to test refunds.
Vote buttons always place a zero-wager vote. Members must use
/prediction vote when they want to include a wager.