From 76bfd27b3315f6efba7f3a47cbedac98dd88b233 Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 14 Jan 2022 00:23:09 -0500 Subject: [PATCH] Add exclusive access category --- src/config.ts | 3 ++- test/cases/getLockReason.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 65b9b10..97ca67d 100644 --- a/src/config.ts +++ b/src/config.ts @@ -19,10 +19,11 @@ addDefaults(config, { privateDBSchema: "./databases/_private.db.sql", readOnly: false, webhooks: [], - categoryList: ["sponsor", "selfpromo", "interaction", "intro", "outro", "preview", "music_offtopic", "filler", "poi_highlight", "chapter"], + categoryList: ["sponsor", "selfpromo", "exclusive_access", "interaction", "intro", "outro", "preview", "music_offtopic", "filler", "poi_highlight", "chapter"], categorySupport: { sponsor: ["skip", "mute", "full"], selfpromo: ["skip", "mute", "full"], + exclusive_access: ["full"], interaction: ["skip", "mute"], intro: ["skip", "mute"], outro: ["skip", "mute"], diff --git a/test/cases/getLockReason.ts b/test/cases/getLockReason.ts index c5bdb89..0bead92 100644 --- a/test/cases/getLockReason.ts +++ b/test/cases/getLockReason.ts @@ -103,6 +103,7 @@ describe("getLockReason", () => { const expected = [ { category: "sponsor", locked: 1, reason: "sponsor-reason", userID: vipUserID1, userName: vipUserName1 }, { category: "selfpromo", locked: 0, reason: "", userID: "", userName: "" }, + { category: "exclusive_access", locked: 0, reason: "", userID: "", userName: "" }, { category: "interaction", locked: 1, reason: "interaction-reason", userID: vipUserID1, userName: vipUserName1 }, { category: "intro", locked: 0, reason: "", userID: "", userName: "" }, { category: "outro", locked: 1, reason: "outro-reason", userID: vipUserID2, userName: vipUserName2 },