shamhi / HamsterKombatBot

Bot that mines coins in HamsterKombat
Apache License 2.0
787 stars 235 forks source link

Unknown error: local variable 'tasks_config' referenced before assignment #2350

Open c5bomba opened 2 weeks ago

c5bomba commented 2 weeks ago

image

hardim26 commented 2 weeks ago

i think problem in

for task_config in tasks_config: if task_config['id'] == task_id: amount_reward = int(task_config.get('rewardCoins', 0))

hardim26 commented 2 weeks ago

i don khow why author do like that/// last commit where break deletion

AKTanara commented 2 weeks ago

I still have this error and TASKs part of bot doesn't work Any solutions please? Unknown error: cannot access local variable 'tasks_config' where it is not associated with a value

AKTanara commented 2 weeks ago

I still have this error and TASKs part of bot doesn't work Any solutions please? Unknown error: cannot access local variable 'tasks_config' where it is not associated with a value

Found that tasks_config is assigned in PROMO function! When disabling PROMO function causes TASKs to fail. Solution: add this to tapper.py line 470: tasks_config = version_config['tasks']

@shamhi PLEASE commit