add timeout cleaning at startup

This commit is contained in:
2025-12-24 13:06:55 +01:00
parent e24e00701c
commit 5a17e405fa

View File

@@ -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);