Coins

Configuring the Coins Module

The Coins module provides various commands for managing and betting coins within the bot. Users can earn, redeem, transfer, and bet coins through different games and actions.

Configuration Options

Set Redeem Delay

Sets the delay time (in seconds) for redeeming coins.

  • Usage:
    • ,config server:<server_name> redeem-delay <seconds>
  • Example:
    • ,config server:myserver redeem-delay 600

Set Redeem Amount

Sets the amount of coins a user can redeem.

  • Usage:
    • ,config server:<server_name> redeem-amount <amount>
  • Example:
    • ,config server:myserver redeem-amount 100.0

Set Interest Rate

Sets the interest rate for coin accumulation.

  • Usage:
    • ,config server:<server_name> interest-rate <rate>
  • Example:
    • ,config server:myserver interest-rate 0.01

Commands and Usage

Show Coins

Shows the number of coins a user has.

  • Usage:
    • ,coins [nickname]
  • Example:
    • ,coins
    • ,coins username

Reset Coins

Resets a user’s coins to 0 (requires permission).

  • Usage:
    • ,resetcoins <nickname>
  • Example:
    • ,resetcoins username

Give Coins

Creates coins and gives them to a user (requires permission).

  • Usage:
    • ,givecoins <nickname> <amount>
  • Example:
    • ,givecoins username 100.0

Redeem Coins

Redeems free coins if the user has none.

  • Usage:
    • ,redeemcoins

Flip Coin

Bets on a coin flip.

  • Usage:
    • ,flip heads|tails all
    • ,flip heads|tails <amount>
  • Example:
    • ,flip heads all
    • ,flip tails 50.0

Send Coins

Sends coins to another user.

  • Usage:
    • ,sendcoins <nickname> <amount>
  • Example:
    • ,sendcoins username 50.0

Play Roulette

Bets on a roulette spin.

  • Usage:
    • ,roulette <types> all
    • ,roulette <types> <amounts>
  • Example:
    • ,roulette red
    • black 50.0

Buy Lottery Ticket

Buys tickets for the lottery.

  • Usage:
    • ,lotterybuy [count]
  • Example:
    • ,lotterybuy
    • ,lotterybuy 5

Show Lottery Tickets

Shows how many lottery tickets the user has.

  • Usage:
    • ,mylottery

Show Lottery Jackpot

Shows the current lottery jackpot.

  • Usage:
    • ,jackpot

Show Time Until Next Lottery

Shows the time until the next lottery draw.

  • Usage:
    • ,nextlottery

Show Last Lottery Winner

Shows who last won the lottery.

  • Usage:
    • ,lotterywinner

Show Richest Users

Shows the top 10 richest users.

  • Usage:
    • ,richest

Notes

Replace <server_name>, <nickname>, <amount>, <seconds>, and <types> with appropriate values.