Implement case-insensitive command processing across all bot modules
Added normalize_input() function to BaseModule for consistent lowercase conversion of user input. Updated all command modules to use normalization for commands, arguments, pet names, location names, gym names, and item names. Players can now use any capitalization for commands and arguments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
39ba55832d
commit
8e9ff2960f
8 changed files with 93 additions and 16 deletions
|
|
@ -72,7 +72,7 @@ class Inventory(BaseModule):
|
|||
if not player:
|
||||
return
|
||||
|
||||
item_name = " ".join(args)
|
||||
item_name = " ".join(self.normalize_input(args))
|
||||
result = await self.database.use_item(player["id"], item_name)
|
||||
|
||||
if not result["success"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue