Poryaei / TapSwap-Clicker

A Python bot and automated clicker for accumulating TapSwap on Telegram.
https://t.me/tapswap_bot
MIT License
72 stars 27 forks source link

UnboundLocalError #21

Closed Aka-Bobur closed 1 month ago

Aka-Bobur commented 1 month ago

'player' Exception in callback Cron.set_result(<_GatheringFu...assignment")]>) handle: <Handle Cron.set_result(<_GatheringFu...assignment")]>)> Traceback (most recent call last): File "C:\Program Files\Python3913\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "c:\Users\TSNQB\Desktop\TapSwap-Clicker.venv\lib\site-packages\aiocron__init__.py", line 112, in set_result raise result File "c:\Users\TSNQB\Desktop\TapSwap-Clicker\clicker.py", line 610, in sendTaps time_to_recharge = ((energy_level500)-energy) / charge_level UnboundLocalError: local variable 'energy_level' referenced before assignment

Aka-Bobur commented 1 month ago
"auto_upgrade": false,
"max_charge_level": 5,
"max_energy_level": 16,
"max_tap_level": 16

}

Poryaei commented 1 month ago

Are you using the latest version?

Poryaei commented 1 month ago

Use the latest version of the robot.