Commands
Complete reference for all PokeDexter chat commands.
Commands
PokeDexter adds several commands to Pokémon Showdown for wallet connection and wagering. This page documents all of them.
Wallet Commands
Wallet Picker (Recommended)
The easiest way to connect your wallet is using the built-in wallet picker:
This opens a modal showing all detected wallets (Phantom, Solflare, etc.). Click one to connect.
Other wallet picker functions:
/connectwallet
Manually connect your Solana wallet to your Pokémon Showdown username.
Parameters:
| Parameter | Required | Description |
|---|---|---|
wallet_address | Yes | Your Solana public address |
Examples:
Success Response:
Error Responses:
Notes:
- Your wallet is stored server-side, mapped to your username
- You can change it anytime by running the command again
- Only the public address is stored (never private keys)
- Data is encrypted and persisted to the database
/mywallet
View your currently connected wallet.
Success Response:
Error Response:
/disconnectwallet
Remove your wallet connection.
Success Response:
Error Response:
Notes:
- You cannot wager without a connected wallet
- Disconnecting doesn't affect pending wagers (they continue to use the wallet you had when you created them)
Wager Commands
/wager
Challenge another player to a wagered battle.
Parameters:
| Parameter | Required | Default | Description |
|---|---|---|---|
username | Yes | - | The player to challenge |
amount | Yes | - | Wager amount in USD |
format | No | gen9randombattle | Battle format |
Examples:
Success Response:
Error Responses:
Notes:
- Challenges expire after 5 minutes
- Only one pending challenge per target user
- The
$symbol is optional in the amount
/acceptwager
Accept an incoming wager challenge.
Parameters:
| Parameter | Required | Description |
|---|---|---|
username | Yes | The challenger's username |
Examples:
Success Response:
Error Responses:
What happens next:
- An escrow wallet is generated
- Both players receive deposit instructions
- Once both deposit, battle starts automatically
/cancelwager
Cancel a wager challenge you sent.
Parameters:
| Parameter | Required | Description |
|---|---|---|
username | No | Specific challenge to cancel (if you have multiple) |
Examples:
Success Response:
Error Responses:
Notes:
- Only cancels challenges YOU sent
- Cannot cancel after both players have deposited
- If deposits were made, refund process begins
/wagers
View your pending wager challenges.
Success Response:
No wagers:
/allwagers
(Admin only) View all active wagers on the server.
Success Response:
Notes:
- Requires moderator permissions or higher
- Useful for monitoring and dispute resolution
Quick Reference Table
| Command/Function | Description | Requires Wallet |
|---|---|---|
DexterWallet.showPicker() | Open wallet picker (JS) | No |
/connectwallet <addr> | Link wallet manually | No |
/mywallet | View linked wallet | No |
/disconnectwallet | Unlink wallet | No |
/wager <user>, <$> | Challenge for money | Yes |
/acceptwager <user> | Accept challenge | Yes |
/cancelwager | Cancel your challenge | No |
/wagers | See your wagers | No |
/allwagers | See all wagers (admin) | No |
Standard Pokémon Showdown Commands
PokeDexter includes all standard PS commands. Some useful ones:
Battle Commands
Team Commands
User Commands
Chat Commands
For the full command list, type /help in chat.
Error Handling
Common Error Messages
| Error | Cause | Solution |
|---|---|---|
| "User not found" | Target offline | Wait for them to come online |
| "Must connect wallet" | No wallet linked | Run /connectwallet |
| "Invalid address" | Bad wallet format | Check your Solana address |
| "Already have pending" | Duplicate challenge | Cancel first or wait for expiry |
| "Amount out of range" | Below $1 or above $100 | Use valid amount |

Commands