# /lottery

### Command: `/lottery`

#### Description

The `/lottery` command is a game that allows users to purchase tickets with a specific number between 0 and 99999. Each ticket also has a series (from 1 to 2).

* Each series represents a “sub-ticket” of the same number.
* If all 2 series of a number are already taken, no more tickets can be bought for that number.
* The series is assigned randomly from the available ones, ensuring that each ticket is unique.

**Parameter Table**

<table><thead><tr><th width="153" align="center">Parameter</th><th width="99">Type</th><th width="355">Description</th><th>Mandatory</th></tr></thead><tbody><tr><td align="center"><code>number</code></td><td>Integer</td><td>Number from 0 to 99999 you want to buy.</td><td>No</td></tr></tbody></table>

**Prize System**

| Requirement               | Reward     |
| ------------------------- | ---------- |
| All 5 digits **+ series** | 500,000 💰 |
| All 5 digits              | 150,000 💰 |
| First or last 4 digits    | 25,000 💰  |
| First or last 3 digits    | 10,000 💰  |
| First or last 2 digits    | 5,000 💰   |
| First or last digit       | 2,000 💰   |

**Notification System**

* **Winners:** Receive a detailed DM showing:
  * Their winning tickets
  * Prize for each ticket
  * Total amount won
* **Non-winners:** Receive a DM informing them of the winning number and encouraging them to try next week.

**Example of Use**

```plaintext
/lottery number: 80
/lottery number 23793
```
