Improve gym challenge command with location-aware and case-insensitive search

- Updated gym challenge to automatically search in player's current location first
- Made gym search case-insensitive (forest guardian, Forest Guardian, FOREST GUARDIAN all work)
- Added helpful error messages showing available gyms in current location
- Updated gym info command to also prioritize current location and be case-insensitive
- Added get_gym_by_name_in_location() database method for location-specific searches
- Improved user experience by removing need to travel between locations to challenge gyms

Fixes: \!gym challenge forest guardian now works correctly

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
megaproxy 2025-07-14 12:57:36 +01:00
parent 4ccfdd3505
commit c1f82b6c6d
3 changed files with 48 additions and 16 deletions

View file

@ -9,7 +9,8 @@
"Bash(cat:*)",
"Bash(pip3 install:*)",
"Bash(apt list:*)",
"Bash(curl:*)"
"Bash(curl:*)",
"Bash(git commit:*)"
],
"deny": []
}