Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
commands [2025/02/23 20:31] – russell | commands [2025/02/23 20:48] (current) – russell | ||
---|---|---|---|
Line 7: | Line 7: | ||
**Usage** | **Usage** | ||
- | **''/ | + | |
+ | **''/ | ||
+ | |||
+ | **Options** | ||
+ | |||
+ | **'' | ||
+ | * The name of the item you want to buy | ||
+ | Required: true | ||
+ | Autocomplete: | ||
+ | Description: | ||
+ | |||
+ | **'' | ||
+ | * How many of the item you want to buy | ||
+ | Required: false (default: 1) | ||
+ | Min value: 1 | ||
+ | Description: | ||
**Validation** | **Validation** | ||
Line 13: | Line 28: | ||
* User must have sufficient JoxCoins for purchase | * User must have sufficient JoxCoins for purchase | ||
* Quantity must be greater than 0 | * Quantity must be greater than 0 | ||
- | **Returns** | + | |
- | * Purchase confirmation containing: | + | |
- | * Item name and quantity | + | |
- | * Total cost in JoxCoins | + | |
- | * Remaining balance | + | |
**Examples** | **Examples** | ||
Line 30: | Line 41: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
- | **Returns** | ||
- | * Embed message containing: | ||
- | * Current price | ||
- | * Price change | ||
- | * Percentage change | ||
- | * Colorcoded indicators (🟢 for positive, 🔴 for negative) | ||
**Examples** | **Examples** | ||
Line 48: | Line 54: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
Line 53: | Line 60: | ||
* User must have at least one item in their inventory | * User must have at least one item in their inventory | ||
* Only shows items with quantity > 0 | * Only shows items with quantity > 0 | ||
- | **Returns** | + | |
- | * Table containing: | + | |
- | * Item names | + | |
- | * Quantities | + | |
- | * Formatted with user's name as title | + | |
**Examples** | **Examples** | ||
Line 68: | Line 71: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
**Options** | **Options** | ||
- | | + | |
- | * `quantity | + | **'' |
- | * `ticker | + | Stock ticker symbol (e.g., AAPL) |
- | * `quantity | + | |
+ | **'' | ||
+ | Number of shares to buy (min: 1) | ||
+ | |||
+ | **'' | ||
+ | Stock ticker symbol (e.g., AAPL) | ||
+ | |||
+ | **'' | ||
+ | Number of shares to sell (min: 1) | ||
**Subcommands** | **Subcommands** | ||
* buy | * buy | ||
Line 81: | Line 94: | ||
* list | * list | ||
+ | |||
**Validation** | **Validation** | ||
Line 86: | Line 100: | ||
* User must have sufficient currency for purchase | * User must have sufficient currency for purchase | ||
* User must own shares to sell them | * User must own shares to sell them | ||
+ | |||
**Examples** | **Examples** | ||
Line 100: | Line 115: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
Line 105: | Line 121: | ||
* Shop must contain at least one item | * Shop must contain at least one item | ||
* Items are sorted by type first, then by cost | * Items are sorted by type first, then by cost | ||
- | **Returns** | + | |
- | * Table containing: | + | |
- | * Item names (max width: 16 chars) | + | |
- | * Prices in JoxCoins | + | |
- | * Item descriptions (max width: 50 chars) | + | |
- | * Items grouped by type | + | |
**Examples** | **Examples** | ||
Line 121: | Line 132: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
**Options** | **Options** | ||
- | | + | |
- | * `timeframe | + | **'' |
+ | Stock symbol to look up (e.g., AAPL, TSLA) | ||
+ | |||
+ | **'' | ||
+ | Chart timeframe | ||
**Validation** | **Validation** | ||
* Symbol must be a valid stock ticker | * Symbol must be a valid stock ticker | ||
* Timeframe must be one of the allowed options | * Timeframe must be one of the allowed options | ||
- | **Returns** | + | |
- | * Stock price chart image from Finviz | + | |
- | * Current price and market data | + | |
**Examples** | **Examples** | ||
Line 144: | Line 159: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
**Options** | **Options** | ||
- | | + | |
- | * `amount | + | **'' |
+ | The user to transfer JoxCoins to | ||
+ | |||
+ | **'' | ||
+ | The amount of JoxCoins to transfer (min: 1) | ||
**Validation** | **Validation** | ||
* Amount must be greater than 0 | * Amount must be greater than 0 | ||
* Sender must have sufficient JoxCoins balance | * Sender must have sufficient JoxCoins balance | ||
* Cannot transfer to self | * Cannot transfer to self | ||
- | **Returns** | + | |
- | * Table containing: | + | |
- | * From (sender username) | + | |
- | * To (recipient username) | + | |
- | * Transfer amount | + | |
- | * Updated sender balance | + | |
- | * Updated recipient balance | + | |
**Examples** | **Examples** | ||
Transfer 100 JoxCoins: | Transfer 100 JoxCoins: | ||
- | < | + | < |
Transfer 1000 JoxCoins: | Transfer 1000 JoxCoins: | ||
- | < | + | < |
---- | ---- | ||
===== Fun Commands ===== | ===== Fun Commands ===== | ||
Line 173: | Line 188: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
**Options** | **Options** | ||
- | | + | |
+ | **'' | ||
+ | Your solution to the active challenge | ||
**Subcommands** | **Subcommands** | ||
* question | * question | ||
* answer | * answer | ||
+ | |||
**Validation** | **Validation** | ||
Line 186: | Line 206: | ||
* Must complete current challenge before getting a new one | * Must complete current challenge before getting a new one | ||
* Answer must match the expected solution | * Answer must match the expected solution | ||
+ | |||
**Examples** | **Examples** | ||
Line 198: | Line 219: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
Line 204: | Line 226: | ||
* Must have at least 1 Fishing Bait | * Must have at least 1 Fishing Bait | ||
* Uses 1 bait per attempt | * Uses 1 bait per attempt | ||
+ | |||
**Examples** | **Examples** | ||
Line 214: | Line 237: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
**Options** | **Options** | ||
- | | + | |
+ | **'' | ||
+ | The user you want to tell to go fuck themselves | ||
**Validation** | **Validation** | ||
* Must specify a valid user | * Must specify a valid user | ||
* Cannot tell yourself to go fuck yourself | * Cannot tell yourself to go fuck yourself | ||
- | **Returns** | + | |
- | * Formatted message mentioning the target user | + | |
- | * Message is visible to everyone in the channel | + | |
**Examples** | **Examples** | ||
Tell someone to GFY: | Tell someone to GFY: | ||
- | < | + | < |
---- | ---- | ||
==== poker ==== | ==== poker ==== | ||
Line 234: | Line 259: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
**Options** | **Options** | ||
- | | + | |
+ | **'' | ||
+ | Card positions to redraw (comma-separated, | ||
**Subcommands** | **Subcommands** | ||
* view | * view | ||
Line 244: | Line 273: | ||
* leaderboard | * leaderboard | ||
+ | |||
**Validation** | **Validation** | ||
Line 249: | Line 279: | ||
* Limited number of redraws per hand | * Limited number of redraws per hand | ||
* Redraw positions must be valid (1 to 5) | * Redraw positions must be valid (1 to 5) | ||
+ | |||
**Examples** | **Examples** | ||
Line 263: | Line 294: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
**Options** | **Options** | ||
- | | + | |
- | * `type (string): Type of bet to place` | + | **'' |
- | | + | Amount of JoxCoins to bet (min: 1, max: 500) |
- | | + | |
- | | + | **'' |
- | | + | Type of bet to place |
- | | + | - RED: Red numbers (1, |
- | | + | - BLACK: Black numbers (2, |
- | | + | - GREEN: Green numbers (0,00) |
- | | + | - EVEN: Even numbers (2, |
- | * `number | + | - ODD: Odd numbers (1, |
+ | - LOW: Numbers 1-18 | ||
+ | - HIGH: Numbers 19-36 | ||
+ | - NUMBER: Specific number bet | ||
+ | |||
+ | **'' | ||
+ | Specific number to bet on (0-36 or 00, only for NUMBER type) | ||
**Validation** | **Validation** | ||
* Must have sufficient JoxCoins balance | * Must have sufficient JoxCoins balance | ||
Line 282: | Line 321: | ||
* Must specify a number when betting on NUMBER type | * Must specify a number when betting on NUMBER type | ||
* Number must be valid (0 to 36 or 00) | * Number must be valid (0 to 36 or 00) | ||
+ | |||
**Examples** | **Examples** | ||
Line 295: | Line 335: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
Line 303: | Line 344: | ||
**Usage** | **Usage** | ||
+ | |||
**''/ | **''/ | ||
---- | ---- |