command handlers always take data param, handler dict

This commit is contained in:
I. H. B.
2025-10-19 10:21:08 +02:00
parent 39f3be6980
commit 487e3b0e02
5 changed files with 46 additions and 84 deletions

View File

@@ -9,7 +9,7 @@ from data.world_loader import game_world
logger = logging.getLogger(__name__)
async def handle_profile(query, user_id: int, player: dict):
async def handle_profile(query, user_id: int, player: dict, data: list):
"""Show player profile and stats."""
await query.answer()
from bot import combat
@@ -70,7 +70,7 @@ async def handle_profile(query, user_id: int, player: dict):
)
async def handle_spend_points_menu(query, user_id: int, player: dict):
async def handle_spend_points_menu(query, user_id: int, player: dict, data: list):
"""Show stat point spending menu."""
await query.answer()
unspent = player.get('unspent_points', 0)