diff --git a/package.json b/package.json index bbaa93f..18e5da6 100644 --- a/package.json +++ b/package.json @@ -10,10 +10,6 @@ "start": "node -r dotenv/config prod/index.js", "test": "echo 'No tests yet!' && exit 0" }, - "engines": { - "node": "22", - "pnpm": "9" - }, "repository": { "type": "git", "url": "git+https://github.com/nhcarrigan/oogie-woogie-boostie-woostie.git" diff --git a/src/config/roles.ts b/src/config/roles.ts index afce01f..855ef58 100644 --- a/src/config/roles.ts +++ b/src/config/roles.ts @@ -1,12 +1,26 @@ export const colourRoles = [ - "883281643098484736", - "883283836887261204", - "883282544655753268", - "883283096378683402", - "883283115265642547", - "883283650794360852", + "917603859977867335", + "917604691897090079", + "917604599790202961", + "917604517854470175", + "917604326447386634", + "917604175792201828", + "917604101863407677", + "917603791694606356", "883284117343584298", + "883283836887261204", + "883283650794360852", + "883283115265642547", + "883283096378683402", "883284381937065984", + "883282544655753268", + "883281643098484736", + "1398924100734287902", ]; -export const boosterRole = "712431541531181177"; +export const qualifiedRoles = [ + "1398917977641975899", + "1457603068391592169", + "1458312645009735680", + "712431541531181177" +] \ No newline at end of file diff --git a/src/modules/manageRoles.ts b/src/modules/manageRoles.ts index 31b537c..031b9ab 100644 --- a/src/modules/manageRoles.ts +++ b/src/modules/manageRoles.ts @@ -1,6 +1,6 @@ import { GuildMember } from "discord.js"; -import { boosterRole, colourRoles } from "../config/roles"; +import { colourRoles, qualifiedRoles } from "../config/roles"; import { errorHandler } from "../utils/errorHandler"; /** @@ -12,7 +12,7 @@ import { errorHandler } from "../utils/errorHandler"; */ export const manageRoles = async (newMember: GuildMember): Promise => { try { - if (!newMember.roles.cache.has(boosterRole)) { + if (!qualifiedRoles.some((role) => newMember.roles.cache.has(role))) { for (const roleId of colourRoles) { const target = newMember.roles.cache.find((role) => role.id === roleId); if (target) { diff --git a/tmp.txt b/tmp.txt new file mode 100644 index 0000000..e69de29