From 7e20b362c3587ff68966e68ec78eeea5e12c4b56 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 12 Oct 2021 00:35:36 -0400 Subject: [PATCH] fixes and whatnot --- .eslintrc.json | 3 ++- package.json | 1 + src/intervals/t2Checks.ts | 3 ++- yarn.lock | 10 +++++++++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index aac0c9e..c5dd0ef 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -40,6 +40,7 @@ "no-useless-constructor": "off", "@typescript-eslint/no-useless-constructor": 2, "import/extensions": "off", - "consistent-return": "off" + "consistent-return": "off", + "no-continue": "off" } } diff --git a/package.json b/package.json index fb27c32..2346b08 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "uuid": "^8.3.2" }, "devDependencies": { + "@types/cron": "^1.7.3", "@types/express": "^4.17.13", "@types/express-serve-static-core": "^4.17.24", "@types/fs-extra": "^9.0.12", diff --git a/src/intervals/t2Checks.ts b/src/intervals/t2Checks.ts index b3341d9..3ef1f98 100644 --- a/src/intervals/t2Checks.ts +++ b/src/intervals/t2Checks.ts @@ -31,7 +31,8 @@ export default async function t2checkCron(client: Client) { for (const user of users) { const check = await checkt2(client.config.internalKey, user.userID); - console.log(check); + const member = client.guilds.cache.get('446067825673633794').members.cache.get(user.userID); + if (member.roles.cache.has('585600289747369987') || member.roles.cache.has('858049948401401866')) continue; if (check.decision === 'DECLINED') { const embed = new MessageEmbed(); embed.setTitle('Cloud Account | Tier Change'); diff --git a/yarn.lock b/yarn.lock index aa53f18..d0ce579 100644 --- a/yarn.lock +++ b/yarn.lock @@ -135,6 +135,14 @@ dependencies: "@types/node" "*" +"@types/cron@^1.7.3": + version "1.7.3" + resolved "https://registry.yarnpkg.com/@types/cron/-/cron-1.7.3.tgz#993db7d54646f61128c851607b64ba4495deae93" + integrity sha512-iPmUXyIJG1Js+ldPYhOQcYU3kCAQ2FWrSkm1FJPoii2eYSn6wEW6onPukNTT0bfiflexNSRPl6KWmAIqS+36YA== + dependencies: + "@types/node" "*" + moment ">=2.14.0" + "@types/express-serve-static-core@^4.17.18", "@types/express-serve-static-core@^4.17.24": version "4.17.24" resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.24.tgz#ea41f93bf7e0d59cd5a76665068ed6aab6815c07" @@ -2141,7 +2149,7 @@ moment-timezone@^0.5.x: dependencies: moment ">= 2.9.0" -"moment@>= 2.9.0", moment@^2.29.1: +"moment@>= 2.9.0", moment@>=2.14.0, moment@^2.29.1: version "2.29.1" resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3" integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==