mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 15:26:58 +01:00
rework aniv timeouts, fix ghost whisper message, invuln status tweaks
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { redis } from "bun";
|
||||
import { streamerUsers } from "main";
|
||||
|
||||
export async function getInvulns() {
|
||||
const data = await redis.keys('user:*:invulnerable');
|
||||
@@ -13,6 +14,7 @@ export async function addInvuln(userid: string) {
|
||||
return await redis.set(`user:${userid}:invulnerable`, '1');
|
||||
};
|
||||
export async function removeInvuln(userid: string) {
|
||||
if (streamerUsers.includes(userid)) return;
|
||||
return await redis.del(`user:${userid}:invulnerable`);
|
||||
};
|
||||
export async function setTemporaryInvuln(userid: string, duration = 600) {
|
||||
|
||||
Reference in New Issue
Block a user