mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 13:56:57 +01:00
fix #7, many commands are now for mods instead of admins
This commit is contained in:
@@ -59,7 +59,7 @@ async function handleChatMessage(msg: EventSubChannelChatMessageEvent, user: Use
|
||||
if (!streamerUsers.includes(msg.chatterId)) return;
|
||||
break;
|
||||
case "moderator":
|
||||
if (!await redis.exists(`user:${user.id}:mod`)) return;
|
||||
if (!(await redis.exists(`user:${user.id}:mod`) || await isAdmin(user.id))) return;
|
||||
break;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user