From 424f7584cb444cb4b2e645e35ae43c66e0648450 Mon Sep 17 00:00:00 2001 From: Interitio Date: Sat, 1 Nov 2025 06:58:46 +1000 Subject: [PATCH] fix: Correct ratelimit for delete notify --- hyperfocus/twitch/component.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperfocus/twitch/component.py b/hyperfocus/twitch/component.py index 1ef8622..cacdfc2 100644 --- a/hyperfocus/twitch/component.py +++ b/hyperfocus/twitch/component.py @@ -91,8 +91,8 @@ class FocusComponent(cmds.Component): if hyperfocused and not self.check_hyperfocus_message(payload): # If we need to delete, run delete and send message notify = ( # - (last := self._last_deleted.get(profile.profileid)) - and (utc_now() - last).total_seconds() > 30 + not (last := self._last_deleted.get(profile.profileid)) + or (utc_now() - last).total_seconds() > 30 ) try: await self.focus_delete_message(payload)