command handlers always take data param, handler dict
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user