Duel Module
The Duel module is an interactive chat game that allows users to challenge each other to a duel, wagering points for a chance to win.
How It Works
Section titled “How It Works”- A user initiates a duel using the
!duelcommand. - The challenged user has 2 minutes to accept or decline the duel.
- If accepted, the game randomly determines a winner — each duelist has a 50/50 chance.
- The winner gains the wagered points, and the loser loses them.
To initiate a duel, use the following command:
!duel <username> [points]Replace <username> with the name of the user you want to challenge, and [points] with the number of points you want to wager. The wager is optional — without one, the duel is played for 0 points.
Examples
Section titled “Examples”-
Challenging a user to a duel for 100 points:
!duel StreamNinja 100 -
Accepting a duel challenge:
!accept
Parameters
Section titled “Parameters”<username>: The name of the user you want to challenge.[points]: The number of points you want to wager in the duel. Supports shorthand like5k,1m, percentages (50%), andall. The wager cannot exceed either duelist’s current balance, and wagers above the configured maximum amount are automatically capped to it.
Configuration
Section titled “Configuration”You can configure the following settings for the Duel module:
| Setting | Description |
|---|---|
| Cooldown | The cooldown period between duel challenges. |
| Maximum amount | The maximum number of points that can be wagered in a duel. |
Related Commands
Section titled “Related Commands”!duel: Challenges another user to a duel.!accept: Accepts a duel challenge.!deny: Declines a duel challenge.!cancelduel: Cancels an outgoing duel request before it is accepted or denied.
Q: How is the winner determined? A: The winner is randomly selected when the duel is accepted — both duelists have an equal 50/50 chance of winning.
Q: Can I challenge multiple users at once? A: No, you can only challenge one user at a time.
Q: What happens if the challenged user doesn’t respond? A: If the challenged user doesn’t accept or deny within 2 minutes, the duel request expires, and no points are exchanged.