mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 07:56:58 +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
|
const banned = await api.moderation
|
||||||
.getBannedUsers(streamerId)
|
.getBannedUsers(streamerId)
|
||||||
.then((a) => a.data);
|
.then((a) => a.data);
|
||||||
|
|||||||
Reference in New Issue
Block a user