Add exclusive access category

This commit is contained in:
Ajay
2022-01-14 00:23:09 -05:00
parent 6fe7200481
commit 76bfd27b33
2 changed files with 3 additions and 1 deletions

View File

@@ -19,10 +19,11 @@ addDefaults(config, {
privateDBSchema: "./databases/_private.db.sql", privateDBSchema: "./databases/_private.db.sql",
readOnly: false, readOnly: false,
webhooks: [], 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: { categorySupport: {
sponsor: ["skip", "mute", "full"], sponsor: ["skip", "mute", "full"],
selfpromo: ["skip", "mute", "full"], selfpromo: ["skip", "mute", "full"],
exclusive_access: ["full"],
interaction: ["skip", "mute"], interaction: ["skip", "mute"],
intro: ["skip", "mute"], intro: ["skip", "mute"],
outro: ["skip", "mute"], outro: ["skip", "mute"],

View File

@@ -103,6 +103,7 @@ describe("getLockReason", () => {
const expected = [ const expected = [
{ category: "sponsor", locked: 1, reason: "sponsor-reason", userID: vipUserID1, userName: vipUserName1 }, { category: "sponsor", locked: 1, reason: "sponsor-reason", userID: vipUserID1, userName: vipUserName1 },
{ category: "selfpromo", locked: 0, reason: "", userID: "", userName: "" }, { 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: "interaction", locked: 1, reason: "interaction-reason", userID: vipUserID1, userName: vipUserName1 },
{ category: "intro", locked: 0, reason: "", userID: "", userName: "" }, { category: "intro", locked: 0, reason: "", userID: "", userName: "" },
{ category: "outro", locked: 1, reason: "outro-reason", userID: vipUserID2, userName: vipUserName2 }, { category: "outro", locked: 1, reason: "outro-reason", userID: vipUserID2, userName: vipUserName2 },