fix cooldown remaining time calculation
@@ -23,7 +23,7 @@ class CooldownManager:
def get_remaining(self, command: str, user_id: int) -> float: # returns remaning cooldown or 0
started = self.cooldowns[command].get(user_id) or time.time()
- remaining = time.time() - (started + self.rates[command])
+ remaining = (started + self.rates[command]) - time.time()
if remaining < 0.01:
self.clear_cooldown(command, user_id)
