forked from engineering/cloudservices
fixes and whatnot
parent
3e1731ef89
commit
7e20b362c3
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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');
|
||||
|
|
10
yarn.lock
10
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==
|
||||
|
|
Loading…
Reference in New Issue