# Economy

All things economy related

# Basic Currency Features

The Base Currency feature provides various economy commands for managing BlahajCoin currency in the bot.

## Commands

### `/currency balance`

Command to check the BlahajCoin balance of a user.

- **Usage**: `/currency balance [user]`
  - `user` (optional): Mention the user to check the balance of. If not provided, the command checks the balance of the message author.

#### Example

`/currency balance @username`

This will display the BlahajCoin balance of the mentioned user.

### `/currency pay`

Command to send BlahajCoin to another user.

- **Usage**: `/currency pay recipient amount`
  - `recipient`: Mention the user you want to send BlahajCoin to.
  - `amount`: The amount of BlahajCoin to send to the recipient.

#### Example

`/currency pay @recipient 50`

This will send 50 BlahajCoin units to the mentioned recipient.

### `/currency leaderboard`

Command to view the leaderboard of users with the highest BlahajCoin balances.

- **Usage**: `/currency leaderboard`

This command displays the top users with the highest BlahajCoin balances.

# XP System Feature

The XP System feature tracks and rewards user XP levels in the bot. Leveling up grants users BlahajCoin currency.

## XP Gain

- Users earn 1 XP for each message they send.

## Leveling Up

- Each user starts at level 1 and requires XP equal to their current level multiplied by 100 to level up.
- Upon leveling up, users receive a reward of BlahajCoin currency equal to their new level.
- Level progress is reset to 0 after leveling up.

## Commands

### `/level`

Command to check the XP level of a user.

- **Usage**: `/level [user]`
  - `user` (optional): Mention the user to check the level of. If not provided, the command checks the level of the message author.

#### Example

`/level @username`

This will display the XP level and progress to the next level for the mentioned user.

# Coinflip Game Feature

The Coinflip Game feature allows users to participate in a coin flip game where they can bet BlahajCoin currency on the outcome.

## Command

### `/coinflip`

Command to play the coin flip game.

- **Usage**: `/coinflip flip amount`
  - `flip`: Choose the side of the coin to bet on. Available choices are "Heads" and "Tails".
  - `amount`: The amount of BlahajCoin to bet on the coin flip.

#### Example

`/coinflip Heads 10`

This will flip a coin and bet 10 BlahajCoin on the "Heads" side.

- If the chosen side matches the outcome, the user wins and receives the bet amount.
- If the chosen side does not match the outcome, the user loses the bet amount.

# Daily Rewards Feature

The Daily Rewards feature allows users to claim a reward each day in the form of virtual currency. This encourages regular interaction within the server and rewards users for their consistency.

## Command

### `/daily`

Command to claim daily reward.

- **Usage**: `/daily`

#### Example

`/daily`

This will claim the daily reward for the user. 

- Each day, the user claims the reward, the reward amount increases by 10%, up to a maximum limit of 5 coins per day.
- If a day is missed, the reward amount will decrease by 50% for each day missed but can be built back up through consistent claiming.
- The reward is added to the user's balance in the form of virtual currency.

## Interaction

Upon using the command, users will receive an embedded message from the bot indicating the amount they've received and their updated balance. They will also be informed about the next day's potential reward (10% increase or 50% decrease depending on the consistency of claims) to motivate them to return.

The goal of this feature is to promote regular activity within the server and reward users for their engagement. 

*Please note: Reward values and conditions may be subject to changes. Always check the most recent announcements for updates.*