Implement pet nicknames system - database, IRC command, validation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
megaproxy 2025-07-14 16:57:41 +01:00
parent 4de0c1a124
commit 3098be7f36
3 changed files with 101 additions and 2 deletions

View file

@ -32,6 +32,37 @@
## 🔄 Current Todo List
### Planned Next Features (In Priority Order)
#### Phase 1: Pet Nicknames System
- [ ] **Database Schema** - Add nickname column to player_pets table
- [ ] **IRC Commands** - Add !nickname <pet_id> <name> command
- [ ] **Web Interface** - Display nicknames on player profiles
- [ ] **Validation** - Ensure appropriate nickname length/content limits
#### Phase 2: Team Builder Tool (Secure PIN System)
- [ ] **Web Team Editor** - Interface for modifying pet teams
- [ ] **PIN Generation** - Create unique verification codes for each request
- [ ] **Temporary Storage** - Hold pending team changes until PIN validation
- [ ] **IRC PIN Delivery** - PM verification codes to players
- [ ] **PIN Validation** - Web form to enter and confirm codes
- [ ] **Database Updates** - Apply team changes only after successful PIN verification
- [ ] **Security Cleanup** - Clear expired PINs and pending requests
**Secure Technical Flow:**
```
Web: Save Team → Generate PIN → Store Pending Changes → IRC: PM PIN
Web: Enter PIN → Validate PIN → Apply Database Changes → Clear Request
```
*Critical: No database changes until PIN verification succeeds*
#### Phase 3: Auto-Battle Mode
- [ ] **Auto-Battle Logic** - Automated pet combat in current location
- [ ] **PM Notifications** - Send results to player via private message
- [ ] **Flood Control** - 5-second delays between battles, wins/losses only
- [ ] **Stop Mechanism** - Commands to start/stop auto-battle mode
### Low Priority
- [ ] **Enhanced Petdex Filtering** - Add search by type, evolution chains, rarity filters