Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APPLY_DAILY_ENERGY and Yes APPLY_DAILY_TURBO not wotking #36

Open
ngocbae98 opened this issue Jul 10, 2024 · 1 comment
Open

APPLY_DAILY_ENERGY and Yes APPLY_DAILY_TURBO not wotking #36

ngocbae98 opened this issue Jul 10, 2024 · 1 comment

Comments

@ngocbae98
Copy link

ngocbae98 commented Jul 10, 2024

I've set
APPLY_DAILY_ENERGY= True
APPLY_DAILY_TURBO= True
but it's not working.

@ngocbae98 ngocbae98 reopened this Jul 10, 2024
@s1rne
Copy link

s1rne commented Jul 12, 2024

I can offer a crutch for APPLY_DAILY_ENERGY, but it works:
after line 283 in tapper (/bot/core/tapper.py) you need to insert the line available_energy -= calc_taps.
To make it work:

...
new_balance = profile_data['currentAmount']
calc_taps = new_balance - balance
available_energy -= calc_taps
balance = new_balance
total = profile_data['totalAmount']
...

And I advise you to set MIN_AVAILABLE_ENERGY = 700 in config.py, and RANDOM_TAPS_COUNT: list[int] = [50, 180]

I hope it helps)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants