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

[pull] main from thebrumby:main #48

Merged
merged 24 commits into from
Sep 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update hot.py
  • Loading branch information
thebrumby committed Sep 15, 2024
commit d071dc152a8f55f686fde33b4341272d50828cb7
6 changes: 3 additions & 3 deletions games/hot.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def full_claim(self):
if wait_time_text != "Filled":
matches = re.findall(r'(\d+)([hm])', wait_time_text)
remaining_wait_time = (sum(int(value) * (60 if unit == 'h' else 1) for value, unit in matches))
remaining_wait_time = self.apply_random_offset(remaining_wait_time)
# Determine the dynamic threshold
if self.settings['lowestClaimOffset'] < 0:
threshold = abs(self.settings['lowestClaimOffset'])
Expand All @@ -133,8 +132,9 @@ def full_claim(self):
self.settings['forceClaim'] = True
self.output(f"Step {self.step} - the remaining time to claim is less than the minimum offset, so applying: settings['forceClaim'] = True", 3)
else:
self.output(f"STATUS: Considering {wait_time_text}, we'll go back to sleep for {remaining_wait_time} minutes.", 1)
return remaining_wait_time
remaining_time = self.apply_random_offset(remaining_wait_time)
self.output(f"STATUS: Original wait time {wait_time_text} {remaining_wait_time}, and random offset, we'll sleep for {remaining_time} minutes.", 1)
return remaining_time
except Exception as e:
self.output(f"Error encountered: {str(e)}", 2)
return 120
Expand Down