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