Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -732,7 +732,6 @@ class LitecoinFarmBot:
|
|
| 732 |
log_warning(f"Klaim bonus gagal: {msg}", self.email)
|
| 733 |
# Cek apakah karena limit
|
| 734 |
if any(kw in msg.lower() for kw in ['hourly limit', 'daily limit', 'cooldown', 'terlalu sering', 'limit']):
|
| 735 |
-
# Ambil reset timer dari dashboard
|
| 736 |
self._set_bonus_cooldown_from_dashboard()
|
| 737 |
return
|
| 738 |
except ValueError:
|
|
@@ -830,6 +829,17 @@ class LitecoinFarmBot:
|
|
| 830 |
self.roll_sitekey = self.SITEKEY_ROLL
|
| 831 |
log_warning(f"Gunakan fallback sitekey roll: {self.roll_sitekey}", self.email)
|
| 832 |
while not self.stop_flag:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 833 |
if self.hourly_cooldown is not None:
|
| 834 |
if time.time() < self.hourly_cooldown:
|
| 835 |
remaining = self.hourly_cooldown - time.time()
|
|
|
|
| 732 |
log_warning(f"Klaim bonus gagal: {msg}", self.email)
|
| 733 |
# Cek apakah karena limit
|
| 734 |
if any(kw in msg.lower() for kw in ['hourly limit', 'daily limit', 'cooldown', 'terlalu sering', 'limit']):
|
|
|
|
| 735 |
self._set_bonus_cooldown_from_dashboard()
|
| 736 |
return
|
| 737 |
except ValueError:
|
|
|
|
| 829 |
self.roll_sitekey = self.SITEKEY_ROLL
|
| 830 |
log_warning(f"Gunakan fallback sitekey roll: {self.roll_sitekey}", self.email)
|
| 831 |
while not self.stop_flag:
|
| 832 |
+
# Cek bonus cooldown terlebih dahulu
|
| 833 |
+
if self.bonus_cooldown is not None:
|
| 834 |
+
if time.time() < self.bonus_cooldown:
|
| 835 |
+
remaining = self.bonus_cooldown - time.time()
|
| 836 |
+
log_info(f"Bonus cooldown aktif, menunggu {remaining:.0f} detik hingga reset", self.email)
|
| 837 |
+
time.sleep(remaining)
|
| 838 |
+
self.bonus_cooldown = None
|
| 839 |
+
self.reauthenticate()
|
| 840 |
+
else:
|
| 841 |
+
self.bonus_cooldown = None
|
| 842 |
+
# Cek hourly cooldown (dari withdraw)
|
| 843 |
if self.hourly_cooldown is not None:
|
| 844 |
if time.time() < self.hourly_cooldown:
|
| 845 |
remaining = self.hourly_cooldown - time.time()
|