From 5a17e405fac0e03142b0ffe242e281450ee4c7b2 Mon Sep 17 00:00:00 2001 From: qwerinope Date: Wed, 24 Dec 2025 13:06:55 +0100 Subject: [PATCH] add timeout cleaning at startup --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index 0f12006..66dbc21 100644 --- a/src/index.ts +++ b/src/index.ts @@ -144,6 +144,11 @@ streamerUsers.forEach( ]), ); +// Deleting all timeouts to prevent ghosts while bot was off +await redis + .keys("user:*:timeout") + .then(async (a) => a.map(async (b) => await redis.del(b))); + const banned = await api.moderation .getBannedUsers(streamerId) .then((a) => a.data);