mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 06:26:59 +01:00
add timeout cleaning at startup
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user