diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..57240c5 --- /dev/null +++ b/.env.example @@ -0,0 +1,5 @@ +DISCORD_TOKEN= +CLIENT_ID= +MONGO_URL= +GOOGLE_KEY= +GOOGLE_CX= \ No newline at end of file diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..23baa29 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,6 @@ +node_modules/ +.env +build/ +important/ +database/ +backup/ \ No newline at end of file diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..fe962a6 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,14 @@ +{ + "env": { + "es2021": true, + "node": true + }, + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": ["@typescript-eslint"], + "rules": {}, + "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"] +} diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..94f480d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..23baa29 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +node_modules/ +.env +build/ +important/ +database/ +backup/ \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..1f16545 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,7 @@ +build/ +node_modules/ +.env +logs/ +backup/ +important/ +database/ \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..591c2ae --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "useTabs": true, + "singleQuote": true, + "trailingComma": "none", + "printWidth": 120, + "plugins": ["@trivago/prettier-plugin-sort-imports"] +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8fdffed --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) MotiCAT + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..e656b98 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,4670 @@ +{ + "name": "motcher", + "version": "1.5.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "motcher", + "version": "1.5.0", + "license": "MIT", + "dependencies": { + "aurora-mongo": "^1.1.3", + "axios": "^1.3.4", + "canvas": "^2.11.2", + "cron": "^2.3.1", + "discord.js": "^14.12.1", + "dotenv": "^16.0.3", + "fs": "^0.0.1-security", + "node-os-utils": "^1.3.7", + "os": "^0.1.2" + }, + "devDependencies": { + "@trivago/prettier-plugin-sort-imports": "^4.3.0", + "@types/node-os-utils": "^1.3.4", + "@typescript-eslint/eslint-plugin": "^6.13.1", + "@typescript-eslint/parser": "^6.13.1", + "eslint": "^8.54.0", + "eslint-config-prettier": "^9.1.0", + "prettier": "^3.1.0", + "ts-node": "^10.9.2", + "typescript": "^5.3.2" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@aws-crypto/crc32": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-3.0.0.tgz", + "integrity": "sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==", + "optional": true, + "dependencies": { + "@aws-crypto/util": "^3.0.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^1.11.1" + } + }, + "node_modules/@aws-crypto/crc32/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + }, + "node_modules/@aws-crypto/ie11-detection": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-3.0.0.tgz", + "integrity": "sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==", + "optional": true, + "dependencies": { + "tslib": "^1.11.1" + } + }, + "node_modules/@aws-crypto/ie11-detection/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + }, + "node_modules/@aws-crypto/sha256-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-3.0.0.tgz", + "integrity": "sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==", + "optional": true, + "dependencies": { + "@aws-crypto/ie11-detection": "^3.0.0", + "@aws-crypto/sha256-js": "^3.0.0", + "@aws-crypto/supports-web-crypto": "^3.0.0", + "@aws-crypto/util": "^3.0.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@aws-sdk/util-utf8-browser": "^3.0.0", + "tslib": "^1.11.1" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + }, + "node_modules/@aws-crypto/sha256-js": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-3.0.0.tgz", + "integrity": "sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==", + "optional": true, + "dependencies": { + "@aws-crypto/util": "^3.0.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^1.11.1" + } + }, + "node_modules/@aws-crypto/sha256-js/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + }, + "node_modules/@aws-crypto/supports-web-crypto": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-3.0.0.tgz", + "integrity": "sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==", + "optional": true, + "dependencies": { + "tslib": "^1.11.1" + } + }, + "node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + }, + "node_modules/@aws-crypto/util": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-3.0.0.tgz", + "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-utf8-browser": "^3.0.0", + "tslib": "^1.11.1" + } + }, + "node_modules/@aws-crypto/util/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + }, + "node_modules/@aws-sdk/client-cognito-identity": { + "version": "3.481.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.481.0.tgz", + "integrity": "sha512-yt3kDnsEixMEa1mQRRB0dbLfrmDgeLK/7/DEka23w0FdryAYm5eZzVpUtaUJpAd6x6FgJ5xuN7fpeXpzOnxI9A==", + "optional": true, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/client-sts": "3.481.0", + "@aws-sdk/core": "3.481.0", + "@aws-sdk/credential-provider-node": "3.481.0", + "@aws-sdk/middleware-host-header": "3.468.0", + "@aws-sdk/middleware-logger": "3.468.0", + "@aws-sdk/middleware-recursion-detection": "3.468.0", + "@aws-sdk/middleware-signing": "3.468.0", + "@aws-sdk/middleware-user-agent": "3.478.0", + "@aws-sdk/region-config-resolver": "3.470.0", + "@aws-sdk/types": "3.468.0", + "@aws-sdk/util-endpoints": "3.478.0", + "@aws-sdk/util-user-agent-browser": "3.468.0", + "@aws-sdk/util-user-agent-node": "3.470.0", + "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.1", + "@smithy/fetch-http-handler": "^2.3.1", + "@smithy/hash-node": "^2.0.17", + "@smithy/invalid-dependency": "^2.0.15", + "@smithy/middleware-content-length": "^2.0.17", + "@smithy/middleware-endpoint": "^2.2.3", + "@smithy/middleware-retry": "^2.0.25", + "@smithy/middleware-serde": "^2.0.15", + "@smithy/middleware-stack": "^2.0.9", + "@smithy/node-config-provider": "^2.1.8", + "@smithy/node-http-handler": "^2.2.1", + "@smithy/protocol-http": "^3.0.11", + "@smithy/smithy-client": "^2.2.0", + "@smithy/types": "^2.7.0", + "@smithy/url-parser": "^2.0.15", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.1", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.23", + "@smithy/util-defaults-mode-node": "^2.0.30", + "@smithy/util-endpoints": "^1.0.7", + "@smithy/util-retry": "^2.0.8", + "@smithy/util-utf8": "^2.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/client-sso": { + "version": "3.481.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.481.0.tgz", + "integrity": "sha512-d+crFfW8HSDXa68MSfMDX6LH0J22P29SxJW4IGgRZKwHWEaSf4UjOP0mjA4V26R50suAV052/WBY6LjtGsZsHg==", + "optional": true, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "3.481.0", + "@aws-sdk/middleware-host-header": "3.468.0", + "@aws-sdk/middleware-logger": "3.468.0", + "@aws-sdk/middleware-recursion-detection": "3.468.0", + "@aws-sdk/middleware-user-agent": "3.478.0", + "@aws-sdk/region-config-resolver": "3.470.0", + "@aws-sdk/types": "3.468.0", + "@aws-sdk/util-endpoints": "3.478.0", + "@aws-sdk/util-user-agent-browser": "3.468.0", + "@aws-sdk/util-user-agent-node": "3.470.0", + "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.1", + "@smithy/fetch-http-handler": "^2.3.1", + "@smithy/hash-node": "^2.0.17", + "@smithy/invalid-dependency": "^2.0.15", + "@smithy/middleware-content-length": "^2.0.17", + "@smithy/middleware-endpoint": "^2.2.3", + "@smithy/middleware-retry": "^2.0.25", + "@smithy/middleware-serde": "^2.0.15", + "@smithy/middleware-stack": "^2.0.9", + "@smithy/node-config-provider": "^2.1.8", + "@smithy/node-http-handler": "^2.2.1", + "@smithy/protocol-http": "^3.0.11", + "@smithy/smithy-client": "^2.2.0", + "@smithy/types": "^2.7.0", + "@smithy/url-parser": "^2.0.15", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.1", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.23", + "@smithy/util-defaults-mode-node": "^2.0.30", + "@smithy/util-endpoints": "^1.0.7", + "@smithy/util-retry": "^2.0.8", + "@smithy/util-utf8": "^2.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/client-sts": { + "version": "3.481.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.481.0.tgz", + "integrity": "sha512-GSnJiceKpwLSEW5q2KRu9zHNJgtYysiy9Xkey0EKLKCdDRdM62yCJEFerAbvRRVJsF2LTSrmBmUl2zWB5RT8mw==", + "optional": true, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "3.481.0", + "@aws-sdk/credential-provider-node": "3.481.0", + "@aws-sdk/middleware-host-header": "3.468.0", + "@aws-sdk/middleware-logger": "3.468.0", + "@aws-sdk/middleware-recursion-detection": "3.468.0", + "@aws-sdk/middleware-user-agent": "3.478.0", + "@aws-sdk/region-config-resolver": "3.470.0", + "@aws-sdk/types": "3.468.0", + "@aws-sdk/util-endpoints": "3.478.0", + "@aws-sdk/util-user-agent-browser": "3.468.0", + "@aws-sdk/util-user-agent-node": "3.470.0", + "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.1", + "@smithy/fetch-http-handler": "^2.3.1", + "@smithy/hash-node": "^2.0.17", + "@smithy/invalid-dependency": "^2.0.15", + "@smithy/middleware-content-length": "^2.0.17", + "@smithy/middleware-endpoint": "^2.2.3", + "@smithy/middleware-retry": "^2.0.25", + "@smithy/middleware-serde": "^2.0.15", + "@smithy/middleware-stack": "^2.0.9", + "@smithy/node-config-provider": "^2.1.8", + "@smithy/node-http-handler": "^2.2.1", + "@smithy/protocol-http": "^3.0.11", + "@smithy/smithy-client": "^2.2.0", + "@smithy/types": "^2.7.0", + "@smithy/url-parser": "^2.0.15", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.1", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.23", + "@smithy/util-defaults-mode-node": "^2.0.30", + "@smithy/util-endpoints": "^1.0.7", + "@smithy/util-middleware": "^2.0.8", + "@smithy/util-retry": "^2.0.8", + "@smithy/util-utf8": "^2.0.2", + "fast-xml-parser": "4.2.5", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/core": { + "version": "3.481.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.481.0.tgz", + "integrity": "sha512-UeyAc2FnWQDts81vPVBWKEj0WagYK4SVAgNfGcg6zCzzqsUG4unr4NPKQoca2L+XOU55yMCy+5l2K6R3YsFGKg==", + "optional": true, + "dependencies": { + "@smithy/core": "^1.2.1", + "@smithy/protocol-http": "^3.0.11", + "@smithy/signature-v4": "^2.0.0", + "@smithy/smithy-client": "^2.2.0", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-cognito-identity": { + "version": "3.481.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.481.0.tgz", + "integrity": "sha512-zuveZv/pK4wl/Pabq2233MmoGAqInSPaxRMvtLGKpIM1E7MGRiaIDfT2PelF62n2ptn4IceXE8xmoHNUDdKGkw==", + "optional": true, + "dependencies": { + "@aws-sdk/client-cognito-identity": "3.481.0", + "@aws-sdk/types": "3.468.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-env": { + "version": "3.468.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.468.0.tgz", + "integrity": "sha512-k/1WHd3KZn0EQYjadooj53FC0z24/e4dUZhbSKTULgmxyO62pwh9v3Brvw4WRa/8o2wTffU/jo54tf4vGuP/ZA==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-http": { + "version": "3.481.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.481.0.tgz", + "integrity": "sha512-A2DJKLc37orM9w/Y9kajZWQ4qK6KD+5QKowXwh5/suhrJjNPKKomHFhAvnqPjJAYaSlES2+wk9O+Mfj0t9X2dw==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@smithy/fetch-http-handler": "^2.3.1", + "@smithy/node-http-handler": "^2.2.1", + "@smithy/property-provider": "^2.0.0", + "@smithy/protocol-http": "^3.0.11", + "@smithy/smithy-client": "^2.2.0", + "@smithy/types": "^2.7.0", + "@smithy/util-stream": "^2.0.23", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.481.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.481.0.tgz", + "integrity": "sha512-QXMlILewLV/yQHkyjXsu7PhvmTZIDAaQ4uAfhjnqbH1B8mErRpZKkzHWwp4yeZdTcHfenTVqoTnx9WDa+SnK/Q==", + "optional": true, + "dependencies": { + "@aws-sdk/credential-provider-env": "3.468.0", + "@aws-sdk/credential-provider-process": "3.468.0", + "@aws-sdk/credential-provider-sso": "3.481.0", + "@aws-sdk/credential-provider-web-identity": "3.468.0", + "@aws-sdk/types": "3.468.0", + "@smithy/credential-provider-imds": "^2.0.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-node": { + "version": "3.481.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.481.0.tgz", + "integrity": "sha512-148Ztn2FjlS3VdGWJnAMjuXiZ55/tD823I/koawgp80LnDqMiKfmSGAioXIikqaBHl40K7ZvtBMqP/n/6GM41A==", + "optional": true, + "dependencies": { + "@aws-sdk/credential-provider-env": "3.468.0", + "@aws-sdk/credential-provider-ini": "3.481.0", + "@aws-sdk/credential-provider-process": "3.468.0", + "@aws-sdk/credential-provider-sso": "3.481.0", + "@aws-sdk/credential-provider-web-identity": "3.468.0", + "@aws-sdk/types": "3.468.0", + "@smithy/credential-provider-imds": "^2.0.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-process": { + "version": "3.468.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.468.0.tgz", + "integrity": "sha512-OYSn1A/UsyPJ7Z8Q2cNhTf55O36shPmSsvOfND04nSfu1nPaR+VUvvsP7v+brhGpwC/GAKTIdGAo4blH31BS6A==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.481.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.481.0.tgz", + "integrity": "sha512-3MrSIQPQDOxhZDppC2XpOLVfuUm7iqRfTrwjSYGeWc//pUZtUI7nMXYjEDL+li5gvasw1lYfYX3VHNdwNnvyOQ==", + "optional": true, + "dependencies": { + "@aws-sdk/client-sso": "3.481.0", + "@aws-sdk/token-providers": "3.481.0", + "@aws-sdk/types": "3.468.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.468.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.468.0.tgz", + "integrity": "sha512-rexymPmXjtkwCPfhnUq3EjO1rSkf39R4Jz9CqiM7OsqK2qlT5Y/V3gnMKn0ZMXsYaQOMfM3cT5xly5R+OKDHlw==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-providers": { + "version": "3.481.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.481.0.tgz", + "integrity": "sha512-bZfl50WtY9nYNuBb9KiP7Sm+C86dc8u40FkyNFFu7xzEmSmT2FVipjBSM63YjE6AKO23AKgTMU3tU9xTy5KRpw==", + "optional": true, + "dependencies": { + "@aws-sdk/client-cognito-identity": "3.481.0", + "@aws-sdk/client-sso": "3.481.0", + "@aws-sdk/client-sts": "3.481.0", + "@aws-sdk/credential-provider-cognito-identity": "3.481.0", + "@aws-sdk/credential-provider-env": "3.468.0", + "@aws-sdk/credential-provider-http": "3.481.0", + "@aws-sdk/credential-provider-ini": "3.481.0", + "@aws-sdk/credential-provider-node": "3.481.0", + "@aws-sdk/credential-provider-process": "3.468.0", + "@aws-sdk/credential-provider-sso": "3.481.0", + "@aws-sdk/credential-provider-web-identity": "3.468.0", + "@aws-sdk/types": "3.468.0", + "@smithy/credential-provider-imds": "^2.0.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-host-header": { + "version": "3.468.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.468.0.tgz", + "integrity": "sha512-gwQ+/QhX+lhof304r6zbZ/V5l5cjhGRxLL3CjH1uJPMcOAbw9wUlMdl+ibr8UwBZ5elfKFGiB1cdW/0uMchw0w==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@smithy/protocol-http": "^3.0.11", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-logger": { + "version": "3.468.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.468.0.tgz", + "integrity": "sha512-X5XHKV7DHRXI3f29SAhJPe/OxWRFgDWDMMCALfzhmJfCi6Jfh0M14cJKoC+nl+dk9lB+36+jKjhjETZaL2bPlA==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.468.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.468.0.tgz", + "integrity": "sha512-vch9IQib2Ng9ucSyRW2eKNQXHUPb5jUPCLA5otTW/8nGjcOU37LxQG4WrxO7uaJ9Oe8hjHO+hViE3P0KISUhtA==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@smithy/protocol-http": "^3.0.11", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-signing": { + "version": "3.468.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.468.0.tgz", + "integrity": "sha512-s+7fSB1gdnnTj5O0aCCarX3z5Vppop8kazbNSZADdkfHIDWCN80IH4ZNjY3OWqaAz0HmR4LNNrovdR304ojb4Q==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/protocol-http": "^3.0.11", + "@smithy/signature-v4": "^2.0.0", + "@smithy/types": "^2.7.0", + "@smithy/util-middleware": "^2.0.8", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.478.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.478.0.tgz", + "integrity": "sha512-Rec+nAPIzzwxgHPW+xqY6tooJGFOytpYg/xSRv8/IXl3xKGhmpMGs6gDWzmMBv/qy5nKTvLph/csNWJ98GWXCw==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@aws-sdk/util-endpoints": "3.478.0", + "@smithy/protocol-http": "^3.0.11", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/region-config-resolver": { + "version": "3.470.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.470.0.tgz", + "integrity": "sha512-C1o1J06iIw8cyAAOvHqT4Bbqf+PgQ/RDlSyjt2gFfP2OovDpc2o2S90dE8f8iZdSGpg70N5MikT1DBhW9NbhtQ==", + "optional": true, + "dependencies": { + "@smithy/node-config-provider": "^2.1.8", + "@smithy/types": "^2.7.0", + "@smithy/util-config-provider": "^2.0.0", + "@smithy/util-middleware": "^2.0.8", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/token-providers": { + "version": "3.481.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.481.0.tgz", + "integrity": "sha512-G4ObHF2A/FlvQG7Lb/2sjuklG89IiH3TI1EiNZSzgu6TvY904Js72Slldls4VeJLY2zAnZgyZ9903pBMkDrcxQ==", + "optional": true, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/middleware-host-header": "3.468.0", + "@aws-sdk/middleware-logger": "3.468.0", + "@aws-sdk/middleware-recursion-detection": "3.468.0", + "@aws-sdk/middleware-user-agent": "3.478.0", + "@aws-sdk/region-config-resolver": "3.470.0", + "@aws-sdk/types": "3.468.0", + "@aws-sdk/util-endpoints": "3.478.0", + "@aws-sdk/util-user-agent-browser": "3.468.0", + "@aws-sdk/util-user-agent-node": "3.470.0", + "@smithy/config-resolver": "^2.0.21", + "@smithy/fetch-http-handler": "^2.3.1", + "@smithy/hash-node": "^2.0.17", + "@smithy/invalid-dependency": "^2.0.15", + "@smithy/middleware-content-length": "^2.0.17", + "@smithy/middleware-endpoint": "^2.2.3", + "@smithy/middleware-retry": "^2.0.25", + "@smithy/middleware-serde": "^2.0.15", + "@smithy/middleware-stack": "^2.0.9", + "@smithy/node-config-provider": "^2.1.8", + "@smithy/node-http-handler": "^2.2.1", + "@smithy/property-provider": "^2.0.0", + "@smithy/protocol-http": "^3.0.11", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/smithy-client": "^2.2.0", + "@smithy/types": "^2.7.0", + "@smithy/url-parser": "^2.0.15", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.1", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.23", + "@smithy/util-defaults-mode-node": "^2.0.30", + "@smithy/util-endpoints": "^1.0.7", + "@smithy/util-retry": "^2.0.8", + "@smithy/util-utf8": "^2.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/types": { + "version": "3.468.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.468.0.tgz", + "integrity": "sha512-rx/9uHI4inRbp2tw3Y4Ih4PNZkVj32h7WneSg3MVgVjAoVD5Zti9KhS5hkvsBxfgmQmg0AQbE+b1sy5WGAgntA==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-endpoints": { + "version": "3.478.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.478.0.tgz", + "integrity": "sha512-u9Mcg3euGJGs5clPt9mBuhBjHiEKiD0PnfvArhfq9i+dcY5mbCq/i1Dezp3iv1fZH9xxQt7hPXDfSpt1yUSM6g==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@smithy/util-endpoints": "^1.0.7", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-locate-window": { + "version": "3.465.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.465.0.tgz", + "integrity": "sha512-f+QNcWGswredzC1ExNAB/QzODlxwaTdXkNT5cvke2RLX8SFU5pYk6h4uCtWC0vWPELzOfMfloBrJefBzlarhsw==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.468.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.468.0.tgz", + "integrity": "sha512-OJyhWWsDEizR3L+dCgMXSUmaCywkiZ7HSbnQytbeKGwokIhD69HTiJcibF/sgcM5gk4k3Mq3puUhGnEZ46GIig==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@smithy/types": "^2.7.0", + "bowser": "^2.11.0", + "tslib": "^2.5.0" + } + }, + "node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.470.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.470.0.tgz", + "integrity": "sha512-QxsZ9iVHcBB/XRdYvwfM5AMvNp58HfqkIrH88mY0cmxuvtlIGDfWjczdDrZMJk9y0vIq+cuoCHsGXHu7PyiEAQ==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.468.0", + "@smithy/node-config-provider": "^2.1.8", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } + } + }, + "node_modules/@aws-sdk/util-utf8-browser": { + "version": "3.259.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz", + "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator": { + "version": "7.17.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.7.tgz", + "integrity": "sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.17.0", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name/node_modules/@babel/types": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables/node_modules/@babel/types": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration/node_modules/@babel/types": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", + "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/template": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template/node_modules/@babel/types": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", + "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.0", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.0", + "@babel/types": "^7.23.0", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/@babel/generator": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", + "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.23.6", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/@babel/types": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", + "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@babel/types": { + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", + "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@discordjs/builders": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.7.0.tgz", + "integrity": "sha512-GDtbKMkg433cOZur8Dv6c25EHxduNIBsxeHrsRoIM8+AwmEZ8r0tEpckx/sHwTLwQPOF3e2JWloZh9ofCaMfAw==", + "dependencies": { + "@discordjs/formatters": "^0.3.3", + "@discordjs/util": "^1.0.2", + "@sapphire/shapeshift": "^3.9.3", + "discord-api-types": "0.37.61", + "fast-deep-equal": "^3.1.3", + "ts-mixer": "^6.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/collection": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.5.3.tgz", + "integrity": "sha512-SVb428OMd3WO1paV3rm6tSjM4wC+Kecaa1EUGX7vc6/fddvw/6lg90z4QtCqm21zvVe92vMMDt9+DkIvjXImQQ==", + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/formatters": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@discordjs/formatters/-/formatters-0.3.3.tgz", + "integrity": "sha512-wTcI1Q5cps1eSGhl6+6AzzZkBBlVrBdc9IUhJbijRgVjCNIIIZPgqnUj3ntFODsHrdbGU8BEG9XmDQmgEEYn3w==", + "dependencies": { + "discord-api-types": "0.37.61" + }, + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/rest": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.2.0.tgz", + "integrity": "sha512-nXm9wT8oqrYFRMEqTXQx9DUTeEtXUDMmnUKIhZn6O2EeDY9VCdwj23XCPq7fkqMPKdF7ldAfeVKyxxFdbZl59A==", + "dependencies": { + "@discordjs/collection": "^2.0.0", + "@discordjs/util": "^1.0.2", + "@sapphire/async-queue": "^1.5.0", + "@sapphire/snowflake": "^3.5.1", + "@vladfrangu/async_event_emitter": "^2.2.2", + "discord-api-types": "0.37.61", + "magic-bytes.js": "^1.5.0", + "tslib": "^2.6.2", + "undici": "5.27.2" + }, + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/rest/node_modules/@discordjs/collection": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-2.0.0.tgz", + "integrity": "sha512-YTWIXLrf5FsrLMycpMM9Q6vnZoR/lN2AWX23/Cuo8uOOtS8eHB2dyQaaGnaF8aZPYnttf2bkLMcXn/j6JUOi3w==", + "engines": { + "node": ">=18" + } + }, + "node_modules/@discordjs/util": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@discordjs/util/-/util-1.0.2.tgz", + "integrity": "sha512-IRNbimrmfb75GMNEjyznqM1tkI7HrZOf14njX7tCAAUetyZM1Pr8hX/EK2lxBCOgWDRmigbp24fD1hdMfQK5lw==", + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/ws": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-1.0.2.tgz", + "integrity": "sha512-+XI82Rm2hKnFwAySXEep4A7Kfoowt6weO6381jgW+wVdTpMS/56qCvoXyFRY0slcv7c/U8My2PwIB2/wEaAh7Q==", + "dependencies": { + "@discordjs/collection": "^2.0.0", + "@discordjs/rest": "^2.1.0", + "@discordjs/util": "^1.0.2", + "@sapphire/async-queue": "^1.5.0", + "@types/ws": "^8.5.9", + "@vladfrangu/async_event_emitter": "^2.2.2", + "discord-api-types": "0.37.61", + "tslib": "^2.6.2", + "ws": "^8.14.2" + }, + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/ws/node_modules/@discordjs/collection": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-2.0.0.tgz", + "integrity": "sha512-YTWIXLrf5FsrLMycpMM9Q6vnZoR/lN2AWX23/Cuo8uOOtS8eHB2dyQaaGnaF8aZPYnttf2bkLMcXn/j6JUOi3w==", + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@fastify/busboy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz", + "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==", + "engines": { + "node": ">=14" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", + "dev": true + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@mapbox/node-pre-gyp": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz", + "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==", + "dependencies": { + "detect-libc": "^2.0.0", + "https-proxy-agent": "^5.0.0", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.7", + "nopt": "^5.0.0", + "npmlog": "^5.0.1", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.11" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/@mongodb-js/saslprep": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.1.tgz", + "integrity": "sha512-t7c5K033joZZMspnHg/gWPE4kandgc2OxE74aYOtGKfgB9VPuVJPix0H6fhmm2erj5PBJ21mqcx34lpIGtUCsQ==", + "optional": true, + "dependencies": { + "sparse-bitfield": "^3.0.3" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@sapphire/async-queue": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.5.1.tgz", + "integrity": "sha512-1RdpsmDQR/aWfp8oJzPtn4dNQrbpqSL5PIA0uAB/XwerPXUf994Ug1au1e7uGcD7ei8/F63UDjr5GWps1g/HxQ==", + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@sapphire/shapeshift": { + "version": "3.9.5", + "resolved": "https://registry.npmjs.org/@sapphire/shapeshift/-/shapeshift-3.9.5.tgz", + "integrity": "sha512-AGdHe+51gF7D3W8hBfuSFLBocURDCXVQczScTHXDS3RpNjNgrktIx/amlz5y8nHhm8SAdFt/X8EF8ZSfjJ0tnA==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=v18" + } + }, + "node_modules/@sapphire/snowflake": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/@sapphire/snowflake/-/snowflake-3.5.1.tgz", + "integrity": "sha512-BxcYGzgEsdlG0dKAyOm0ehLGm2CafIrfQTZGWgkfKYbj+pNNsorZ7EotuZukc2MT70E0UbppVbtpBrqpzVzjNA==", + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@smithy/abort-controller": { + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-2.0.15.tgz", + "integrity": "sha512-JkS36PIS3/UCbq/MaozzV7jECeL+BTt4R75bwY8i+4RASys4xOyUS1HsRyUNSqUXFP4QyCz5aNnh3ltuaxv+pw==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/config-resolver": { + "version": "2.0.21", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-2.0.21.tgz", + "integrity": "sha512-rlLIGT+BeqjnA6C2FWumPRJS1UW07iU5ZxDHtFuyam4W65gIaOFMjkB90ofKCIh+0mLVQrQFrl/VLtQT/6FWTA==", + "optional": true, + "dependencies": { + "@smithy/node-config-provider": "^2.1.8", + "@smithy/types": "^2.7.0", + "@smithy/util-config-provider": "^2.0.0", + "@smithy/util-middleware": "^2.0.8", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/core": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-1.2.1.tgz", + "integrity": "sha512-f6cwmMuHo7RIw/c184NBd2rGeGvGIX6p55HSrG5jfR3qkNYo80PHRfhzkJMq1+mv1ZjI5p8NhenWMMkIRJR4tw==", + "optional": true, + "dependencies": { + "@smithy/middleware-endpoint": "^2.2.3", + "@smithy/middleware-retry": "^2.0.25", + "@smithy/middleware-serde": "^2.0.15", + "@smithy/protocol-http": "^3.0.11", + "@smithy/smithy-client": "^2.2.0", + "@smithy/types": "^2.7.0", + "@smithy/util-middleware": "^2.0.8", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/credential-provider-imds": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-2.1.4.tgz", + "integrity": "sha512-cwPJN1fa1YOQzhBlTXRavABEYRRchci1X79QRwzaNLySnIMJfztyv1Zkst0iZPLMnpn8+CnHu3wOHS11J5Dr3A==", + "optional": true, + "dependencies": { + "@smithy/node-config-provider": "^2.1.8", + "@smithy/property-provider": "^2.0.16", + "@smithy/types": "^2.7.0", + "@smithy/url-parser": "^2.0.15", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/eventstream-codec": { + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-2.0.15.tgz", + "integrity": "sha512-crjvz3j1gGPwA0us6cwS7+5gAn35CTmqu/oIxVbYJo2Qm/sGAye6zGJnMDk3BKhWZw5kcU1G4MxciTkuBpOZPg==", + "optional": true, + "dependencies": { + "@aws-crypto/crc32": "3.0.0", + "@smithy/types": "^2.7.0", + "@smithy/util-hex-encoding": "^2.0.0", + "tslib": "^2.5.0" + } + }, + "node_modules/@smithy/fetch-http-handler": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-2.3.1.tgz", + "integrity": "sha512-6MNk16fqb8EwcYY8O8WxB3ArFkLZ2XppsSNo1h7SQcFdDDwIumiJeO6wRzm7iB68xvsOQzsdQKbdtTieS3hfSQ==", + "optional": true, + "dependencies": { + "@smithy/protocol-http": "^3.0.11", + "@smithy/querystring-builder": "^2.0.15", + "@smithy/types": "^2.7.0", + "@smithy/util-base64": "^2.0.1", + "tslib": "^2.5.0" + } + }, + "node_modules/@smithy/hash-node": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-2.0.17.tgz", + "integrity": "sha512-Il6WuBcI1nD+e2DM7tTADMf01wEPGK8PAhz4D+YmDUVaoBqlA+CaH2uDJhiySifmuKBZj748IfygXty81znKhw==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "@smithy/util-buffer-from": "^2.0.0", + "@smithy/util-utf8": "^2.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/invalid-dependency": { + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-2.0.15.tgz", + "integrity": "sha512-dlEKBFFwVfzA5QroHlBS94NpgYjXhwN/bFfun+7w3rgxNvVy79SK0w05iGc7UAeC5t+D7gBxrzdnD6hreZnDVQ==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + } + }, + "node_modules/@smithy/is-array-buffer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.0.0.tgz", + "integrity": "sha512-z3PjFjMyZNI98JFRJi/U0nGoLWMSJlDjAW4QUX2WNZLas5C0CmVV6LJ01JI0k90l7FvpmixjWxPFmENSClQ7ug==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/middleware-content-length": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-2.0.17.tgz", + "integrity": "sha512-OyadvMcKC7lFXTNBa8/foEv7jOaqshQZkjWS9coEXPRZnNnihU/Ls+8ZuJwGNCOrN2WxXZFmDWhegbnM4vak8w==", + "optional": true, + "dependencies": { + "@smithy/protocol-http": "^3.0.11", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/middleware-endpoint": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-2.2.3.tgz", + "integrity": "sha512-nYfxuq0S/xoAjdLbyn1ixeVB6cyH9wYCMtbbOCpcCRYR5u2mMtqUtVjjPAZ/DIdlK3qe0tpB0Q76szFGNuz+kQ==", + "optional": true, + "dependencies": { + "@smithy/middleware-serde": "^2.0.15", + "@smithy/node-config-provider": "^2.1.8", + "@smithy/shared-ini-file-loader": "^2.2.7", + "@smithy/types": "^2.7.0", + "@smithy/url-parser": "^2.0.15", + "@smithy/util-middleware": "^2.0.8", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/middleware-retry": { + "version": "2.0.25", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-2.0.25.tgz", + "integrity": "sha512-FXhafCPvx/9L9OgHJ3cdo/pD1f7ngC7DKsjDV2J7k6LO/Yl69POoBLk4sI1OZPUGc4dfxriENlTma9Nj1hI+IQ==", + "optional": true, + "dependencies": { + "@smithy/node-config-provider": "^2.1.8", + "@smithy/protocol-http": "^3.0.11", + "@smithy/service-error-classification": "^2.0.8", + "@smithy/smithy-client": "^2.2.0", + "@smithy/types": "^2.7.0", + "@smithy/util-middleware": "^2.0.8", + "@smithy/util-retry": "^2.0.8", + "tslib": "^2.5.0", + "uuid": "^8.3.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/middleware-serde": { + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-2.0.15.tgz", + "integrity": "sha512-FOZRFk/zN4AT4wzGuBY+39XWe+ZnCFd0gZtyw3f9Okn2CJPixl9GyWe98TIaljeZdqWkgrzGyPre20AcW2UMHQ==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/middleware-stack": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-2.0.9.tgz", + "integrity": "sha512-bCB5dUtGQ5wh7QNL2ELxmDc6g7ih7jWU3Kx6MYH1h4mZbv9xL3WyhKHojRltThCB1arLPyTUFDi+x6fB/oabtA==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/node-config-provider": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-2.1.8.tgz", + "integrity": "sha512-+w26OKakaBUGp+UG+dxYZtFb5fs3tgHg3/QrRrmUZj+rl3cIuw840vFUXX35cVPTUCQIiTqmz7CpVF7+hdINdQ==", + "optional": true, + "dependencies": { + "@smithy/property-provider": "^2.0.16", + "@smithy/shared-ini-file-loader": "^2.2.7", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/node-http-handler": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-2.2.1.tgz", + "integrity": "sha512-8iAKQrC8+VFHPAT8pg4/j6hlsTQh+NKOWlctJBrYtQa4ExcxX7aSg3vdQ2XLoYwJotFUurg/NLqFCmZaPRrogw==", + "optional": true, + "dependencies": { + "@smithy/abort-controller": "^2.0.15", + "@smithy/protocol-http": "^3.0.11", + "@smithy/querystring-builder": "^2.0.15", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/property-provider": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-2.0.16.tgz", + "integrity": "sha512-28Ky0LlOqtEjwg5CdHmwwaDRHcTWfPRzkT6HrhwOSRS2RryAvuDfJrZpM+BMcrdeCyEg1mbcgIMoqTla+rdL8Q==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/protocol-http": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.11.tgz", + "integrity": "sha512-3ziB8fHuXIRamV/akp/sqiWmNPR6X+9SB8Xxnozzj+Nq7hSpyKdFHd1FLpBkgfGFUTzzcBJQlDZPSyxzmdcx5A==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/querystring-builder": { + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-2.0.15.tgz", + "integrity": "sha512-e1q85aT6HutvouOdN+dMsN0jcdshp50PSCvxDvo6aIM57LqeXimjfONUEgfqQ4IFpYWAtVixptyIRE5frMp/2A==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "@smithy/util-uri-escape": "^2.0.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/querystring-parser": { + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-2.0.15.tgz", + "integrity": "sha512-jbBvoK3cc81Cj1c1TH1qMYxNQKHrYQ2DoTntN9FBbtUWcGhc+T4FP6kCKYwRLXyU4AajwGIZstvNAmIEgUUNTQ==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/service-error-classification": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-2.0.8.tgz", + "integrity": "sha512-jCw9+005im8tsfYvwwSc4TTvd29kXRFkH9peQBg5R/4DD03ieGm6v6Hpv9nIAh98GwgYg1KrztcINC1s4o7/hg==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/shared-ini-file-loader": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-2.2.7.tgz", + "integrity": "sha512-0Qt5CuiogIuvQIfK+be7oVHcPsayLgfLJGkPlbgdbl0lD28nUKu4p11L+UG3SAEsqc9UsazO+nErPXw7+IgDpQ==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/signature-v4": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-2.0.18.tgz", + "integrity": "sha512-SJRAj9jT/l9ocm8D0GojMbnA1sp7I4JeStOQ4lEXI8A5eHE73vbjlzlqIFB7cLvIgau0oUl4cGVpF9IGCrvjlw==", + "optional": true, + "dependencies": { + "@smithy/eventstream-codec": "^2.0.15", + "@smithy/is-array-buffer": "^2.0.0", + "@smithy/types": "^2.7.0", + "@smithy/util-hex-encoding": "^2.0.0", + "@smithy/util-middleware": "^2.0.8", + "@smithy/util-uri-escape": "^2.0.0", + "@smithy/util-utf8": "^2.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/smithy-client": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-2.2.0.tgz", + "integrity": "sha512-C/bkNue5H5Obgl83SnlBt4v6VM68CqIjIELh3vAabud87xFYznLNKtj6Qb69Z+QOnLp9T+We++sEem/f2AHE+Q==", + "optional": true, + "dependencies": { + "@smithy/middleware-endpoint": "^2.2.3", + "@smithy/middleware-stack": "^2.0.9", + "@smithy/protocol-http": "^3.0.11", + "@smithy/types": "^2.7.0", + "@smithy/util-stream": "^2.0.23", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/types": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.7.0.tgz", + "integrity": "sha512-1OIFyhK+vOkMbu4aN2HZz/MomREkrAC/HqY5mlJMUJfGrPRwijJDTeiN8Rnj9zUaB8ogXAfIOtZrrgqZ4w7Wnw==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/url-parser": { + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-2.0.15.tgz", + "integrity": "sha512-sADUncUj9rNbOTrdDGm4EXlUs0eQ9dyEo+V74PJoULY4jSQxS+9gwEgsPYyiu8PUOv16JC/MpHonOgqP/IEDZA==", + "optional": true, + "dependencies": { + "@smithy/querystring-parser": "^2.0.15", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + } + }, + "node_modules/@smithy/util-base64": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-2.0.1.tgz", + "integrity": "sha512-DlI6XFYDMsIVN+GH9JtcRp3j02JEVuWIn/QOZisVzpIAprdsxGveFed0bjbMRCqmIFe8uetn5rxzNrBtIGrPIQ==", + "optional": true, + "dependencies": { + "@smithy/util-buffer-from": "^2.0.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-body-length-browser": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-2.0.1.tgz", + "integrity": "sha512-NXYp3ttgUlwkaug4bjBzJ5+yIbUbUx8VsSLuHZROQpoik+gRkIBeEG9MPVYfvPNpuXb/puqodeeUXcKFe7BLOQ==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + } + }, + "node_modules/@smithy/util-body-length-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-2.1.0.tgz", + "integrity": "sha512-/li0/kj/y3fQ3vyzn36NTLGmUwAICb7Jbe/CsWCktW363gh1MOcpEcSO3mJ344Gv2dqz8YJCLQpb6hju/0qOWw==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-buffer-from": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.0.0.tgz", + "integrity": "sha512-/YNnLoHsR+4W4Vf2wL5lGv0ksg8Bmk3GEGxn2vEQt52AQaPSCuaO5PM5VM7lP1K9qHRKHwrPGktqVoAHKWHxzw==", + "optional": true, + "dependencies": { + "@smithy/is-array-buffer": "^2.0.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-config-provider": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-2.0.0.tgz", + "integrity": "sha512-xCQ6UapcIWKxXHEU4Mcs2s7LcFQRiU3XEluM2WcCjjBtQkUN71Tb+ydGmJFPxMUrW/GWMgQEEGipLym4XG0jZg==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-defaults-mode-browser": { + "version": "2.0.23", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-2.0.23.tgz", + "integrity": "sha512-2u+7t7Wgz1jlfsf6il3pz6DIzyJHS3qrnNnmATICm00pQeqp2D4kUOYauOgKGIeKgVpwzzq8+hFQe749r3xR5w==", + "optional": true, + "dependencies": { + "@smithy/property-provider": "^2.0.16", + "@smithy/smithy-client": "^2.2.0", + "@smithy/types": "^2.7.0", + "bowser": "^2.11.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@smithy/util-defaults-mode-node": { + "version": "2.0.30", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-2.0.30.tgz", + "integrity": "sha512-nmcmEyRlClNprp7mBnUzfmW6HrKQK+yvl+cyXCRUoQSxRvZuLDrztV+JD+zr3qV/oirEc4Q0QNIrrhTDCE6JeA==", + "optional": true, + "dependencies": { + "@smithy/config-resolver": "^2.0.21", + "@smithy/credential-provider-imds": "^2.1.4", + "@smithy/node-config-provider": "^2.1.8", + "@smithy/property-provider": "^2.0.16", + "@smithy/smithy-client": "^2.2.0", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@smithy/util-endpoints": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-1.0.7.tgz", + "integrity": "sha512-Q2gEind3jxoLk6hdKWyESMU7LnXz8aamVwM+VeVjOYzYT1PalGlY/ETa48hv2YpV4+YV604y93YngyzzzQ4IIA==", + "optional": true, + "dependencies": { + "@smithy/node-config-provider": "^2.1.8", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@smithy/util-hex-encoding": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-2.0.0.tgz", + "integrity": "sha512-c5xY+NUnFqG6d7HFh1IFfrm3mGl29lC+vF+geHv4ToiuJCBmIfzx6IeHLg+OgRdPFKDXIw6pvi+p3CsscaMcMA==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-middleware": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-2.0.8.tgz", + "integrity": "sha512-qkvqQjM8fRGGA8P2ydWylMhenCDP8VlkPn8kiNuFEaFz9xnUKC2irfqsBSJrfrOB9Qt6pQsI58r3zvvumhFMkw==", + "optional": true, + "dependencies": { + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-retry": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-2.0.8.tgz", + "integrity": "sha512-cQTPnVaVFMjjS6cb44WV2yXtHVyXDC5icKyIbejMarJEApYeJWpBU3LINTxHqp/tyLI+MZOUdosr2mZ3sdziNg==", + "optional": true, + "dependencies": { + "@smithy/service-error-classification": "^2.0.8", + "@smithy/types": "^2.7.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@smithy/util-stream": { + "version": "2.0.23", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-2.0.23.tgz", + "integrity": "sha512-OJMWq99LAZJUzUwTk+00plyxX3ESktBaGPhqNIEVab+53gLULiWN9B/8bRABLg0K6R6Xg4t80uRdhk3B/LZqMQ==", + "optional": true, + "dependencies": { + "@smithy/fetch-http-handler": "^2.3.1", + "@smithy/node-http-handler": "^2.2.1", + "@smithy/types": "^2.7.0", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-buffer-from": "^2.0.0", + "@smithy/util-hex-encoding": "^2.0.0", + "@smithy/util-utf8": "^2.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-uri-escape": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-2.0.0.tgz", + "integrity": "sha512-ebkxsqinSdEooQduuk9CbKcI+wheijxEb3utGXkCoYQkJnwTnLbH1JXGimJtUkQwNQbsbuYwG2+aFVyZf5TLaw==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-utf8": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.0.2.tgz", + "integrity": "sha512-qOiVORSPm6Ce4/Yu6hbSgNHABLP2VMv8QOC3tTDNHHlWY19pPyc++fBTbZPtx6egPXi4HQxKDnMxVxpbtX2GoA==", + "optional": true, + "dependencies": { + "@smithy/util-buffer-from": "^2.0.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@trivago/prettier-plugin-sort-imports": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@trivago/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-4.3.0.tgz", + "integrity": "sha512-r3n0onD3BTOVUNPhR4lhVK4/pABGpbA7bW3eumZnYdKaHkf1qEC+Mag6DPbGNuuh0eG8AaYj+YqmVHSiGslaTQ==", + "dev": true, + "dependencies": { + "@babel/generator": "7.17.7", + "@babel/parser": "^7.20.5", + "@babel/traverse": "7.23.2", + "@babel/types": "7.17.0", + "javascript-natural-sort": "0.7.1", + "lodash": "^4.17.21" + }, + "peerDependencies": { + "@vue/compiler-sfc": "3.x", + "prettier": "2.x - 3.x" + }, + "peerDependenciesMeta": { + "@vue/compiler-sfc": { + "optional": true + } + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/luxon": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/@types/luxon/-/luxon-3.3.7.tgz", + "integrity": "sha512-gKc9P2d4g5uYwmy4s/MO/yOVPmvHyvzka1YH6i5dM03UrFofHSmgc0D0ymbDRStFWHusk6cwwF6nhLm/ckBbbQ==" + }, + "node_modules/@types/node": { + "version": "20.10.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz", + "integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/node-os-utils": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@types/node-os-utils/-/node-os-utils-1.3.4.tgz", + "integrity": "sha512-BCUYrbdoO4FUbx6MB9atLNFnkxdliFaxdiTJMIPPiecXIApc5zf4NIqV5G1jWv/ReZvtYyHLs40RkBjHX+vykA==", + "dev": true + }, + "node_modules/@types/semver": { + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", + "dev": true + }, + "node_modules/@types/webidl-conversions": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz", + "integrity": "sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==" + }, + "node_modules/@types/whatwg-url": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", + "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", + "dependencies": { + "@types/node": "*", + "@types/webidl-conversions": "*" + } + }, + "node_modules/@types/ws": { + "version": "8.5.9", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.9.tgz", + "integrity": "sha512-jbdrY0a8lxfdTp/+r7Z4CkycbOFN8WX+IOchLJr3juT/xzbJ8URyTVSJ/hvNdadTgM1mnedb47n+Y31GsFnQlg==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.16.0.tgz", + "integrity": "sha512-O5f7Kv5o4dLWQtPX4ywPPa+v9G+1q1x8mz0Kr0pXUtKsevo+gIJHLkGc8RxaZWtP8RrhwhSNIWThnW42K9/0rQ==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.16.0", + "@typescript-eslint/type-utils": "6.16.0", + "@typescript-eslint/utils": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.16.0.tgz", + "integrity": "sha512-H2GM3eUo12HpKZU9njig3DF5zJ58ja6ahj1GoHEHOgQvYxzoFJJEvC1MQ7T2l9Ha+69ZSOn7RTxOdpC/y3ikMw==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "6.16.0", + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/typescript-estree": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.16.0.tgz", + "integrity": "sha512-0N7Y9DSPdaBQ3sqSCwlrm9zJwkpOuc6HYm7LpzLAPqBL7dmzAUimr4M29dMkOP/tEwvOCC/Cxo//yOfJD3HUiw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.16.0.tgz", + "integrity": "sha512-ThmrEOcARmOnoyQfYkHw/DX2SEYBalVECmoldVuH6qagKROp/jMnfXpAU/pAIWub9c4YTxga+XwgAkoA0pxfmg==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "6.16.0", + "@typescript-eslint/utils": "6.16.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.16.0.tgz", + "integrity": "sha512-hvDFpLEvTJoHutVl87+MG/c5C8I6LOgEx05zExTSJDEVU7hhR3jhV8M5zuggbdFCw98+HhZWPHZeKS97kS3JoQ==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.16.0.tgz", + "integrity": "sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.16.0.tgz", + "integrity": "sha512-T83QPKrBm6n//q9mv7oiSvy/Xq/7Hyw9SzSEhMHJwznEmQayfBM87+oAlkNAMEO7/MjIwKyOHgBJbxB0s7gx2A==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.16.0", + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/typescript-estree": "6.16.0", + "semver": "^7.5.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.16.0.tgz", + "integrity": "sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.16.0", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/@vladfrangu/async_event_emitter": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/@vladfrangu/async_event_emitter/-/async_event_emitter-2.2.4.tgz", + "integrity": "sha512-ButUPz9E9cXMLgvAW8aLAKKJJsPu1dY1/l/E8xzLFuysowXygs6GBcyunK9rnGC4zTsnIc2mQo71rGw9U+Ykug==", + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "node_modules/acorn": { + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.1.tgz", + "integrity": "sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" + }, + "node_modules/are-we-there-yet": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", + "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/aurora-mongo": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/aurora-mongo/-/aurora-mongo-1.1.3.tgz", + "integrity": "sha512-cFbAd+9khu/+mJuKR8KmQxGGwwqUwtAxuDVl9vkX5wPEzgHSIZfMKcNyX5NzIw2dy5qYenwVjJ5UywL/e1OJVQ==", + "dependencies": { + "json-bigint": "^1.0.0", + "mongoose": "^6.0.11" + } + }, + "node_modules/axios": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.3.tgz", + "integrity": "sha512-fWyNdeawGam70jXSVlKl+SUNVcL6j6W79CuSIPfi6HnDUmSCH6gyUys/HrqHeA/wU0Az41rRgean494d0Jb+ww==", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/bignumber.js": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", + "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", + "engines": { + "node": "*" + } + }, + "node_modules/bowser": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", + "optional": true + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/bson": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/bson/-/bson-4.7.2.tgz", + "integrity": "sha512-Ry9wCtIZ5kGqkJoi6aD8KjxFZEx78guTQDnpXWiNthsxzrxAK/i8E6pCHAIZTbaEFWcOCvbecMukfK7XUvyLpQ==", + "dependencies": { + "buffer": "^5.6.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/canvas": { + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.11.2.tgz", + "integrity": "sha512-ItanGBMrmRV7Py2Z+Xhs7cT+FNt5K0vPL4p9EZ/UX/Mu7hFbkxSjKF2KVtPwX7UYWp7dRKnrTvReflgrItJbdw==", + "hasInstallScript": true, + "dependencies": { + "@mapbox/node-pre-gyp": "^1.0.0", + "nan": "^2.17.0", + "simple-get": "^3.0.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/cron": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/cron/-/cron-2.4.4.tgz", + "integrity": "sha512-MHlPImXJj3K7x7lyUHjtKEOl69CSlTOWxS89jiFgNkzXfvhVjhMz/nc7/EIfN9vgooZp8XTtXJ1FREdmbyXOiQ==", + "dependencies": { + "@types/luxon": "~3.3.0", + "luxon": "~3.3.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decompress-response": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz", + "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==", + "dependencies": { + "mimic-response": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" + }, + "node_modules/detect-libc": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz", + "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/discord-api-types": { + "version": "0.37.61", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.61.tgz", + "integrity": "sha512-o/dXNFfhBpYHpQFdT6FWzeO7pKc838QeeZ9d91CfVAtpr5XLK4B/zYxQbYgPdoMiTDvJfzcsLW5naXgmHGDNXw==" + }, + "node_modules/discord.js": { + "version": "14.14.1", + "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.14.1.tgz", + "integrity": "sha512-/hUVzkIerxKHyRKopJy5xejp4MYKDPTszAnpYxzVVv4qJYf+Tkt+jnT2N29PIPschicaEEpXwF2ARrTYHYwQ5w==", + "dependencies": { + "@discordjs/builders": "^1.7.0", + "@discordjs/collection": "1.5.3", + "@discordjs/formatters": "^0.3.3", + "@discordjs/rest": "^2.1.0", + "@discordjs/util": "^1.0.2", + "@discordjs/ws": "^1.0.2", + "@sapphire/snowflake": "3.5.1", + "@types/ws": "8.5.9", + "discord-api-types": "0.37.61", + "fast-deep-equal": "3.1.3", + "lodash.snakecase": "4.1.1", + "tslib": "2.6.2", + "undici": "5.27.2", + "ws": "8.14.2" + }, + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-prettier": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fast-xml-parser": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", + "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", + "funding": [ + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + }, + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "optional": true, + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, + "node_modules/fastq": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.16.0.tgz", + "integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "dev": true + }, + "node_modules/follow-redirects": { + "version": "1.15.3", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", + "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs": { + "version": "0.0.1-security", + "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/gauge": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", + "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.2", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.1", + "object-assign": "^4.1.1", + "signal-exit": "^3.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ignore": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/javascript-natural-sort": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz", + "integrity": "sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw==", + "dev": true + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/kareem": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz", + "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.snakecase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==" + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/luxon": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.3.0.tgz", + "integrity": "sha512-An0UCfG/rSiqtAIiBPO0Y9/zAnHUZxAMiCpTd5h2smgsj7GGmcenvrvww2cqNA8/4A5ZrD1gJpHN2mIHZQF+Mg==", + "engines": { + "node": ">=12" + } + }, + "node_modules/magic-bytes.js": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/magic-bytes.js/-/magic-bytes.js-1.7.0.tgz", + "integrity": "sha512-YzVU2+/hrjwx8xcgAw+ffNq3jkactpj+f1iSL4LonrFKhvnwDzHSqtFdk/MMRP53y9ScouJ7cKEnqYsJwsHoYA==" + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/memory-pager": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", + "optional": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-response": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz", + "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mongodb": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.17.1.tgz", + "integrity": "sha512-MBuyYiPUPRTqfH2dV0ya4dcr2E5N52ocBuZ8Sgg/M030nGF78v855B3Z27mZJnp8PxjnUquEnAtjOsphgMZOlQ==", + "dependencies": { + "bson": "^4.7.2", + "mongodb-connection-string-url": "^2.6.0", + "socks": "^2.7.1" + }, + "engines": { + "node": ">=12.9.0" + }, + "optionalDependencies": { + "@aws-sdk/credential-providers": "^3.186.0", + "@mongodb-js/saslprep": "^1.1.0" + } + }, + "node_modules/mongodb-connection-string-url": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz", + "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==", + "dependencies": { + "@types/whatwg-url": "^8.2.1", + "whatwg-url": "^11.0.0" + } + }, + "node_modules/mongoose": { + "version": "6.12.3", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.12.3.tgz", + "integrity": "sha512-MNJymaaXali7w7rHBxVUoQ3HzHHMk/7I/+yeeoSa4rUzdjZwIWQznBNvVgc0A8ghuJwsuIkb5LyLV6gSjGjWyQ==", + "dependencies": { + "bson": "^4.7.2", + "kareem": "2.5.1", + "mongodb": "4.17.1", + "mpath": "0.9.0", + "mquery": "4.0.3", + "ms": "2.1.3", + "sift": "16.0.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mongoose" + } + }, + "node_modules/mongoose/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/mpath": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", + "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mquery": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/mquery/-/mquery-4.0.3.tgz", + "integrity": "sha512-J5heI+P08I6VJ2Ky3+33IpCdAvlYGTSUjwTPxkAr8i8EoduPMBX2OY/wa3IKZIQl7MU4SbFk8ndgSKyB/cl1zA==", + "dependencies": { + "debug": "4.x" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/nan": { + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.18.0.tgz", + "integrity": "sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w==" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-fetch/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/node-fetch/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/node-fetch/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/node-os-utils": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/node-os-utils/-/node-os-utils-1.3.7.tgz", + "integrity": "sha512-fvnX9tZbR7WfCG5BAy3yO/nCLyjVWD6MghEq0z5FDfN+ZXpLWNITBdbifxQkQ25ebr16G0N7eRWJisOcMEHG3Q==" + }, + "node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/npmlog": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", + "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", + "dependencies": { + "are-we-there-yet": "^2.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^3.0.0", + "set-blocking": "^2.0.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/os": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/os/-/os-0.1.2.tgz", + "integrity": "sha512-ZoXJkvAnljwvc56MbvhtKVWmSkzV712k42Is2mA0+0KTSRakq5XXuXpjZjgAt9ctzl51ojhQWakQQpmOvXWfjQ==" + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", + "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/sift": { + "version": "16.0.1", + "resolved": "https://registry.npmjs.org/sift/-/sift-16.0.1.tgz", + "integrity": "sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ==" + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "node_modules/simple-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", + "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/simple-get": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz", + "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==", + "dependencies": { + "decompress-response": "^4.2.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", + "dependencies": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sparse-bitfield": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", + "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", + "optional": true, + "dependencies": { + "memory-pager": "^1.0.2" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strnum": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", + "optional": true + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/tar": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz", + "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/ts-api-utils": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", + "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", + "dev": true, + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/ts-mixer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.3.tgz", + "integrity": "sha512-k43M7uCG1AkTyxgnmI5MPwKoUvS/bRvLvUb7+Pgpdlmok8AoqmUaZxUUw8zKM5B1lqZrt41GjYgnvAi0fppqgQ==" + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici": { + "version": "5.27.2", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.27.2.tgz", + "integrity": "sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==", + "dependencies": { + "@fastify/busboy": "^2.0.0" + }, + "engines": { + "node": ">=14.0" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wide-align": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/ws": { + "version": "8.14.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz", + "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..099977a --- /dev/null +++ b/package.json @@ -0,0 +1,36 @@ +{ + "name": "motcher", + "version": "1.5.0", + "scripts": { + "test": "ts-node src/index.ts", + "start": "npm run compile && node build/index.js", + "compile": "tsc -p .", + "format": "prettier . --write", + "lint": "npm run format && eslint .", + "deploy:slash": "npm run compile && node ./build/deploy-commands.js" + }, + "author": "MotiCAT", + "license": "MIT", + "devDependencies": { + "@trivago/prettier-plugin-sort-imports": "^4.3.0", + "@types/node-os-utils": "^1.3.4", + "@typescript-eslint/eslint-plugin": "^6.13.1", + "@typescript-eslint/parser": "^6.13.1", + "eslint": "^8.54.0", + "eslint-config-prettier": "^9.1.0", + "prettier": "^3.1.0", + "ts-node": "^10.9.2", + "typescript": "^5.3.2" + }, + "dependencies": { + "aurora-mongo": "^1.1.3", + "axios": "^1.3.4", + "canvas": "^2.11.2", + "cron": "^2.3.1", + "discord.js": "^14.12.1", + "dotenv": "^16.0.3", + "fs": "^0.0.1-security", + "node-os-utils": "^1.3.7", + "os": "^0.1.2" + } +} diff --git a/src/Events/index.ts b/src/Events/index.ts new file mode 100644 index 0000000..0a24708 --- /dev/null +++ b/src/Events/index.ts @@ -0,0 +1,27 @@ +import { onError } from './onError'; +import { onGuildMemberAdd } from './onGuildMemberAdd'; +import { onGuildMemberRemove } from './onGuildMemberRemove'; +import { onGuildMemberUpdate } from './onGuildMemberUpdate'; +import { onGuildRoleCreate } from './onGuildRoleCreate'; +import { onGuildRoleDelete } from './onGuildRoleDelete'; +import { onGuildRoleUpdate } from './onGuildRoleUpdate'; +import { onInteractionCreate } from './onInteractionCreate'; +import { onMessageCreate } from './onMessageCreate'; +import { onMessageDelete } from './onMessageDelete'; +import { onMessageUpdate } from './onMessageUpdate'; +import { onReady } from './onReady'; + +export const events = { + onReady, + onMessageCreate, + onMessageUpdate, + onMessageDelete, + onInteractionCreate, + onGuildMemberAdd, + onGuildMemberUpdate, + onGuildMemberRemove, + onGuildRoleCreate, + onGuildRoleUpdate, + onGuildRoleDelete, + onError +}; diff --git a/src/Events/onError.ts b/src/Events/onError.ts new file mode 100644 index 0000000..f8ae853 --- /dev/null +++ b/src/Events/onError.ts @@ -0,0 +1,15 @@ +import { EmbedBuilder, Client } from 'discord.js'; + +export async function onError(client: Client, error: Error) { + const err = new EmbedBuilder() + .setTitle(`**${error}**`) + .setColor('#ff0000') + .setDescription('```js\n' + error.stack + '```') + .setTimestamp(); + const channel = await client.channels.fetch('1122130976823316511'); + if (!channel?.isTextBased()) return; + channel?.send({ + content: '<@895050958441160734>', + embeds: [err] + }); +} diff --git a/src/Events/onGuildMemberAdd.ts b/src/Events/onGuildMemberAdd.ts new file mode 100644 index 0000000..35709c7 --- /dev/null +++ b/src/Events/onGuildMemberAdd.ts @@ -0,0 +1,51 @@ +import { ServerJoinData, ServerMemberData } from '../Utils/ServerData'; +import { bannedServers, bannedUsers } from '../index'; +import { EmbedBuilder, GuildMember, PermissionsBitField } from 'discord.js'; +import { readFileSync } from 'fs'; + +export async function onGuildMemberAdd(member: GuildMember) { + if (bannedUsers.includes(member.user.id) || bannedServers.includes(member.guild?.id)) return; + const serverId = member.guild.id; + const rawData = readFileSync('./database/join_messages.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + const serverData = data[serverId]; + if (serverData) { + try { + const channel = member.guild.channels.cache.get(serverData.channelId); + if (channel && channel.isTextBased()) { + if (!member.guild?.members.me?.permissionsIn(channel).has(PermissionsBitField.Flags.SendMessages)) return; + if (member.user.bot) { + channel.send(`${member.user.globalName}が連携されました`).catch(() => {}); + } else { + channel.send(serverData.joinMessage.replace('{user}', member.user.toString())).catch(() => {}); + } + } + } catch (error) { + console.error(error); + } + } + const logRawData = readFileSync('./database/memberlogs.json', 'utf-8'); + const logdata: Record = JSON.parse(logRawData); + const serverlogData = logdata[serverId]; + if (serverlogData) { + try { + const channel = member.guild.channels.cache.get(serverlogData.channelId); + if (channel && channel.isTextBased()) { + if (!member.guild?.members.me?.permissionsIn(channel).has(PermissionsBitField.Flags.SendMessages)) return; + const createdDate = new Date(member.user.createdAt).toLocaleString('ja-JP', { timeZone: 'Asia/Tokyo' }); + const embed = new EmbedBuilder() + .setAuthor({ name: member.user.globalName ?? member.user.username, iconURL: member.user.displayAvatarURL() }) + .setDescription(`${member.user} がサーバーに参加しました`) + .setColor('#0099ff') + .addFields({ name: 'アカウント作成日', value: createdDate }) + .addFields({ name: 'ユーザーネーム', value: member.user.username }) + .setFooter({ text: member.guild.name }) + .setThumbnail(member.user.displayAvatarURL()) + .setTimestamp(); + channel.send({ embeds: [embed] }).catch(() => {}); + } + } catch (error) { + console.error(error); + } + } +} diff --git a/src/Events/onGuildMemberRemove.ts b/src/Events/onGuildMemberRemove.ts new file mode 100644 index 0000000..613c812 --- /dev/null +++ b/src/Events/onGuildMemberRemove.ts @@ -0,0 +1,48 @@ +import { ServerLeaveData, ServerMemberData } from '../Utils/ServerData'; +import { bannedServers, bannedUsers } from '../index'; +import { EmbedBuilder, GuildMember, PartialGuildMember, PermissionsBitField } from 'discord.js'; +import { readFileSync } from 'fs'; + +export async function onGuildMemberRemove(member: GuildMember | PartialGuildMember) { + if (bannedUsers.includes(member.user.id) || bannedServers.includes(member.guild.id)) return; + const serverId = member.guild.id; + const rawData = readFileSync('./database/leave_messages.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + const serverData = data[serverId]; + if (serverData) { + try { + const channel = member.guild.channels.cache.get(serverData.channelId); + if (channel && channel.isTextBased()) { + if (!member.guild?.members.me?.permissionsIn(channel).has(PermissionsBitField.Flags.SendMessages)) return; + if (member.user.bot) { + channel.send(`${member.user.username}との連携が解除されました`).catch(() => {}); + } else { + channel.send(serverData.leaveMessage.replace('{user}', member.user.toString())).catch(console.error); + } + } + } catch (error) { + console.error(error); + } + } + const logRawData = readFileSync('./database/memberlogs.json', 'utf-8'); + const logdata: Record = JSON.parse(logRawData); + const serverlogData = logdata[serverId]; + if (serverlogData) { + try { + const channel = member.guild.channels.cache.get(serverlogData.channelId); + if (channel && channel.isTextBased()) { + if (!member.guild?.members.me?.permissionsIn(channel).has(PermissionsBitField.Flags.SendMessages)) return; + const embed = new EmbedBuilder() + .setAuthor({ name: member.user.username, iconURL: member.user.displayAvatarURL() }) + .setDescription(`${member.user} がサーバーから退出しました`) + .setColor('#0099ff') + .setThumbnail(member.user.displayAvatarURL()) + .setFooter({ text: member.guild.name }) + .setTimestamp(); + channel.send({ embeds: [embed] }); + } + } catch (error) { + console.error(error); + } + } +} diff --git a/src/Events/onGuildMemberUpdate.ts b/src/Events/onGuildMemberUpdate.ts new file mode 100644 index 0000000..c7fe451 --- /dev/null +++ b/src/Events/onGuildMemberUpdate.ts @@ -0,0 +1,46 @@ +import { ServerMemberData } from '../Utils/ServerData'; +import { bannedServers, bannedUsers } from '../index'; +import { EmbedBuilder, GuildMember, PartialGuildMember, PermissionsBitField } from 'discord.js'; +import { readFileSync } from 'fs'; + +export async function onGuildMemberUpdate(oldMember: GuildMember | PartialGuildMember, newMember: GuildMember) { + if (bannedUsers.includes(newMember.user.id) || bannedServers.includes(newMember.guild?.id)) return; + const serverId = oldMember.guild.id; + const logRawData = readFileSync('./database/memberlogs.json', 'utf-8'); + const logdata: Record = JSON.parse(logRawData); + const serverlogData = logdata[serverId]; + if (serverlogData) { + try { + const channel = oldMember.guild.channels.cache.get(serverlogData.channelId); + if (channel && channel.isTextBased()) { + if (!oldMember.guild?.members.me?.permissionsIn(channel).has(PermissionsBitField.Flags.SendMessages)) return; + if (oldMember.nickname !== newMember.nickname) { + const embed = new EmbedBuilder() + .setAuthor({ name: oldMember.user.username, iconURL: oldMember.user.displayAvatarURL() }) + .setDescription(`${newMember.user}のニックネームが更新されました`) + .addFields( + { name: '前のニックネーム', value: oldMember.nickname || 'なし', inline: true }, + { name: '新しいニックネーム', value: newMember.nickname || 'なし', inline: true } + ) + .setFooter({ text: oldMember.guild.name }) + .setColor('#0099ff') + .setThumbnail(newMember.user.displayAvatarURL()) + .setTimestamp(); + channel.send({ embeds: [embed] }); + } + if (oldMember.user.displayAvatarURL() !== newMember.user.displayAvatarURL()) { + const embed = new EmbedBuilder() + .setAuthor({ name: oldMember.user.username, iconURL: newMember.user.displayAvatarURL() }) + .setDescription(`${oldMember.user}のアバターが更新されました`) + .setColor('#0099ff') + .setFooter({ text: oldMember.guild.name }) + .setThumbnail(newMember.user.displayAvatarURL()) + .setTimestamp(); + channel.send({ embeds: [embed] }); + } + } + } catch (error) { + console.error(error); + } + } +} diff --git a/src/Events/onGuildRoleCreate.ts b/src/Events/onGuildRoleCreate.ts new file mode 100644 index 0000000..d172bd1 --- /dev/null +++ b/src/Events/onGuildRoleCreate.ts @@ -0,0 +1,26 @@ +import { ServerRoleData } from '../Utils/ServerData'; +import { bannedServers } from '../index'; +import { EmbedBuilder, PermissionsBitField, Role } from 'discord.js'; +import { readFileSync } from 'fs'; + +export async function onGuildRoleCreate(role: Role) { + if (bannedServers.includes(role.guild.id)) return; + const rawData = readFileSync('./database/rolelogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + const serverId = role.guild.id; + const serverData = data[serverId]; + if (!serverData) return; + try { + const channel = role.guild.channels.cache.get(serverData.channelId); + if (channel && channel.isTextBased()) { + if (!role.guild?.members.me?.permissionsIn(channel).has(PermissionsBitField.Flags.SendMessages)) return; + const embed = new EmbedBuilder() + .setDescription(`新しいロール ${role} が作成されました`) + .setTimestamp() + .setColor('#0099ff'); + channel.send({ embeds: [embed] }); + } + } catch (error) { + console.error(error); + } +} diff --git a/src/Events/onGuildRoleDelete.ts b/src/Events/onGuildRoleDelete.ts new file mode 100644 index 0000000..c8b7ec0 --- /dev/null +++ b/src/Events/onGuildRoleDelete.ts @@ -0,0 +1,26 @@ +import { ServerRoleData } from '../Utils/ServerData'; +import { bannedServers } from '../index'; +import { EmbedBuilder, PermissionsBitField, Role } from 'discord.js'; +import { readFileSync } from 'fs'; + +export async function onGuildRoleDelete(role: Role) { + if (bannedServers.includes(role.guild.id)) return; + const rawData = readFileSync('./database/rolelogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + const serverId = role.guild.id; + const serverData = data[serverId]; + if (!serverData) return; + try { + const channel = role.guild.channels.cache.get(serverData.channelId); + if (channel && channel.isTextBased()) { + if (!role.guild.members.me?.permissionsIn(channel).has(PermissionsBitField.Flags.SendMessages)) return; + const embed = new EmbedBuilder() + .setDescription(`${role.name} ロールが削除されました`) + .setTimestamp() + .setColor('#0099ff'); + channel.send({ embeds: [embed] }); + } + } catch (error) { + console.error(error); + } +} diff --git a/src/Events/onGuildRoleUpdate.ts b/src/Events/onGuildRoleUpdate.ts new file mode 100644 index 0000000..3c3df77 --- /dev/null +++ b/src/Events/onGuildRoleUpdate.ts @@ -0,0 +1,46 @@ +import { ServerRoleData } from '../Utils/ServerData'; +import { bannedServers } from '../index'; +import { EmbedBuilder, PermissionsBitField, Role } from 'discord.js'; +import { readFileSync } from 'fs'; + +export async function onGuildRoleUpdate(oldRole: Role, newRole: Role) { + if (bannedServers.includes(newRole.guild.id)) return; + const rawData = readFileSync('./database/rolelogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + const serverId = oldRole.guild.id; + const serverData = data[serverId]; + if (!serverData) return; + try { + const embed = new EmbedBuilder() + .setTitle('ロールが更新されました') + .setDescription(`${newRole}`) + .setColor('#0099ff'); + const changes = []; + if (oldRole.name !== newRole.name) { + changes.push(`ロール名: ${oldRole.name} → ${newRole.name}`); + } + if (!oldRole.permissions.equals(newRole.permissions)) { + const addedPerms = oldRole.permissions.missing(newRole.permissions); + const removedPerms = newRole.permissions.missing(oldRole.permissions); + if (addedPerms.length > 0) { + changes.push(`追加された権限: ${addedPerms.map((p) => `\`${p}\``).join(', ')}`); + } + if (removedPerms.length > 0) { + changes.push(`削除された権限: ${removedPerms.map((p) => `\`${p}\``).join(', ')}`); + } + } + if (oldRole.color !== newRole.color) { + changes.push(`色: ${oldRole.hexColor} → ${newRole.hexColor}`); + } + if (changes.length > 0) { + embed.addFields({ name: '変更された属性', value: changes.join('\n') }); + const channel = newRole.guild.channels.cache.get(serverData.channelId); + if (channel && channel.isTextBased()) { + if (!oldRole.guild.members.me?.permissionsIn(channel).has(PermissionsBitField.Flags.SendMessages)) return; + channel.send({ embeds: [embed] }); + } + } + } catch (error) { + console.error(error); + } +} diff --git a/src/Events/onInteractionCreate.ts b/src/Events/onInteractionCreate.ts new file mode 100644 index 0000000..d008562 --- /dev/null +++ b/src/Events/onInteractionCreate.ts @@ -0,0 +1,143 @@ +import { bannedUsers, bannedServers } from '../index'; +import { interactions } from '../interactions'; +import { BaseInteraction, Awaitable } from 'discord.js'; +import { config } from 'dotenv'; + +config(); + +export async function onInteractionCreate(interaction: BaseInteraction): Promise> { + if (interaction.isButton()) { + switch (interaction.customId) { + case 'createticket': + interactions.createticket(interaction); + break; + case 'closeticket': + interactions.closeticket(interaction); + break; + case 'yes': + interactions.yes(interaction); + break; + case 'no': + interactions.no(interaction); + break; + default: + break; + } + } + if (!interaction.isChatInputCommand()) return; + if (!interaction.guild) { + interaction.reply('このコマンドはDMでは使用できません。'); + return; + } + if (bannedServers.includes(interaction.guild.id) || bannedUsers.includes(interaction.user.id)) return; + switch (interaction.commandName) { + case 'about': + interactions.about(interaction); + break; + case 'addrole': + interactions.addrole(interaction); + break; + case 'avatar': + interactions.avatar(interaction); + break; + case 'ban': + interactions.ban(interaction); + break; + case 'banlist': + interactions.banlist(interaction); + break; + case 'banner': + interactions.banner(interaction); + break; + case 'clear': + interactions.clear(interaction); + break; + case 'deletejoin': + interactions.deletejoin(interaction); + break; + case 'deleteleave': + interactions.deleteleave(interaction); + break; + case 'help': + interactions.help(interaction); + break; + case 'inlist': + interactions.inlist(interaction); + break; + case 'invite': + interactions.invite(interaction); + break; + case 'joinmsg': + interactions.joinmsg(interaction); + break; + case 'kick': + interactions.kick(interaction); + break; + case 'leavemsg': + interactions.leavemsg(interaction); + break; + case 'mcskin': + interactions.mcskin(interaction); + break; + case 'mcstatus': + interactions.mcstatus(interaction); + break; + case 'memberlog': + interactions.memberlog(interaction); + break; + case 'memberlogstop': + interactions.memberlogstop(interaction); + break; + case 'msglog': + interactions.msglog(interaction); + break; + case 'msglogstop': + interactions.msglogstop(interaction); + break; + case 'ping': + interactions.ping(interaction); + break; + case 'restart': + interactions.restart(interaction); + break; + case 'remrole': + interactions.remrole(interaction); + break; + case 'resdelete': + interactions.resdelete(interaction); + break; + case 'resnow': + interactions.resnow(interaction); + break; + case 'response': + interactions.response(interaction); + break; + case 'rolelog': + interactions.rolelog(interaction); + break; + case 'rolelogstop': + interactions.rolelogstop(interaction); + break; + case 'search': + interactions.search(interaction); + break; + case 'server': + interactions.server(interaction); + break; + case 'status': + interactions.status(interaction); + break; + case 'timeout': + interactions.timeout(interaction); + break; + case 'untimeout': + interactions.untimeout(interaction); + break; + case 'user': + interactions.user(interaction); + break; + default: + interaction.reply({ content: 'そのコマンドは存在しません。', ephemeral: true }); + break; + } +} diff --git a/src/Events/onMessageCreate.ts b/src/Events/onMessageCreate.ts new file mode 100644 index 0000000..204d01a --- /dev/null +++ b/src/Events/onMessageCreate.ts @@ -0,0 +1,170 @@ +import { commands } from '../commands'; +import { bannedUsers, bannedServers } from '../index'; +import { Message, PermissionsBitField, Awaitable, GuildTextBasedChannel } from 'discord.js'; +import { config } from 'dotenv'; + +config(); + +const prefix = 'mt!'; + +export async function onMessageCreate(message: Message): Promise> { + if (bannedUsers.includes(message.author.id)) return; + if (!message.guild) { + if (message.author.id === message.client.user.id) return; + const channel = await message.client.channels.fetch('1121348990030589963'); + const attachment = message.attachments.first(); + if (!channel?.isTextBased()) return; + channel + .send({ + content: message.content + ? `${message.content}\n(${message.author.id} | ${message.author.username})` + : `${message.author.id} | (${message.author.username})`, + files: attachment + ? [ + { + attachment: attachment.url, + name: attachment.name + } + ] + : undefined + }) + .catch((err) => { + channel.send(err.toString()); + }); + return; + } + if ( + !message.content.startsWith(prefix) || + message.author.bot || + message.guild?.members.me?.communicationDisabledUntil !== null || + !message.guild.members.me + .permissionsIn(message.channel as GuildTextBasedChannel) + .has(PermissionsBitField.Flags.SendMessages) || + bannedServers.includes(message.guild.id) + ) + return; + const args = message.content.slice(prefix.length).trim().split(/ +/) as string[]; + const commandName = args.shift()?.toLowerCase(); + switch (commandName) { + case 'about': + commands.about(message); + break; + case 'addrole': + commands.addrole(message); + break; + case 'avatar': + commands.avatar(message); + break; + case 'ban': + commands.ban(message); + break; + case 'banlist': + commands.banlist(message); + break; + case 'banner': + commands.banner(message); + break; + case 'clear': + commands.clear(message); + break; + case 'deletejoin': + commands.deletejoin(message); + break; + case 'deleteleave': + commands.deleteleave(message); + break; + case 'help': + commands.help(message); + break; + case 'inlist': + commands.inlist(message); + break; + case 'invite': + commands.invite(message); + break; + case 'joinmsg': + commands.joinmsg(message); + break; + case 'kick': + commands.kick(message); + break; + case 'leavemsg': + commands.leavemsg(message); + break; + case 'mcskin': + commands.mcskin(message); + break; + case 'mcstatus': + commands.mcstatus(message); + break; + case 'memberlog': + commands.memberlog(message); + break; + case 'memberlogstop': + commands.memberlogstop(message); + break; + case 'minvite': + commands.botinvite(message); + break; + case 'msglog': + commands.msglog(message); + break; + case 'msglogstop': + commands.msglogstop(message); + break; + case 'ping': + commands.ping(message); + break; + case 'poll': + commands.poll(message); + break; + case 'restart': + commands.restart(message); + break; + case 'remrole': + commands.remrole(message); + break; + case 'resdelete': + commands.resdelete(message); + break; + case 'resnow': + commands.resnow(message); + break; + case 'response': + commands.response(message); + break; + case 'rolelog': + commands.rolelog(message); + break; + case 'rolelogstop': + commands.rolelogstop(message); + break; + case 'run': + commands.run(message); + break; + case 'script': + commands.script(message); + break; + case 'search': + commands.search(message); + break; + case 'server': + commands.server(message); + break; + case 'status': + commands.status(message); + break; + case 'timeout': + commands.timeout(message); + break; + case 'untimeout': + commands.untimeout(message); + break; + case 'user': + commands.user(message); + break; + default: + message.reply('存在しないコマンドです。'); + break; + } +} diff --git a/src/Events/onMessageDelete.ts b/src/Events/onMessageDelete.ts new file mode 100644 index 0000000..881e191 --- /dev/null +++ b/src/Events/onMessageDelete.ts @@ -0,0 +1,35 @@ +import { ServerMsgData } from '../Utils/ServerData'; +import { bannedUsers, bannedServers } from '../index'; +import { EmbedBuilder, Guild, GuildBasedChannel, Message, PartialMessage, PermissionsBitField, User } from 'discord.js'; +import { readFileSync } from 'fs'; + +export async function onMessageDelete(message: Message | PartialMessage) { + if (bannedUsers.includes((message.author as User).id) || bannedServers.includes((message.guild as Guild).id)) return; + if ( + !message.content || + !message.guild?.members.me + ?.permissionsIn(message.channel as GuildBasedChannel) + .has(PermissionsBitField.Flags.SendMessages) || + !message.guild + ) + return; + const serverId = message.guild.id; + const rawData = readFileSync('./database/msglogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + const serverData = data[serverId]; + if (!serverData) return; + try { + const channel = message.guild.channels.cache.get(serverData.channelId); + if (channel && channel.isTextBased()) { + const embed = new EmbedBuilder() + .setDescription(`${message.channel}で${message.member?.user ?? 'Webhook'}のメッセージが削除されました。`) + .setColor('#0099ff') + .addFields({ name: 'メッセージ', value: message.content }) + .setThumbnail((message.author as User).displayAvatarURL() ?? null) + .setTimestamp(); + channel.send({ embeds: [embed] }).catch(() => {}); + } + } catch (error) { + console.error(error); + } +} diff --git a/src/Events/onMessageUpdate.ts b/src/Events/onMessageUpdate.ts new file mode 100644 index 0000000..d149866 --- /dev/null +++ b/src/Events/onMessageUpdate.ts @@ -0,0 +1,35 @@ +import { ServerMsgData } from '../Utils/ServerData'; +import { bannedUsers, bannedServers } from '../index'; +import { EmbedBuilder, Guild, Message, PartialMessage, PermissionsBitField, User } from 'discord.js'; +import { readFileSync } from 'fs'; + +export const onMessageUpdate = async (oldMessage: Message | PartialMessage, newMessage: Message | PartialMessage) => { + if (bannedUsers.includes((newMessage.author as User).id) || bannedServers.includes((newMessage.guild as Guild).id)) + return; + if ((oldMessage.author as User).bot || oldMessage.content === newMessage.content || !oldMessage.guild) return; + const serverId = oldMessage.guild.id; + const rawData = readFileSync('./database/msglogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + const serverData = data[serverId]; + if (!serverData) return; + try { + const channel = oldMessage.guild.channels.cache.get(serverData.channelId); + if (channel && channel.isTextBased()) { + if (!oldMessage.guild?.members.me?.permissionsIn(channel).has(PermissionsBitField.Flags.SendMessages)) return; + const embed = new EmbedBuilder() + .setDescription( + `${oldMessage.channel}で${oldMessage.author}がメッセージを編集しました。\n [メッセージへジャンプ](${newMessage.url})` + ) + .addFields( + { name: '変更前', value: oldMessage.content ?? 'なし' }, + { name: '変更後', value: newMessage.content ?? 'なし' } + ) + .setColor('#0099ff') + .setThumbnail((oldMessage.author as User).displayAvatarURL()) + .setTimestamp(); + channel.send({ embeds: [embed] }).catch(() => {}); + } + } catch (error) { + console.error(error); + } +}; diff --git a/src/Events/onReady.ts b/src/Events/onReady.ts new file mode 100644 index 0000000..04479b1 --- /dev/null +++ b/src/Events/onReady.ts @@ -0,0 +1,20 @@ +import { Client, version } from 'discord.js'; + +export function onReady(client: Client) { + console.log(`Logged in as ${client.user?.tag}`); + client.user?.setActivity('mc!help | Created By CH Products'); + console.table({ + 'Bot User': client.user?.tag, + 'Guild(s)': client.guilds.cache.size + ' Servers', + Watching: client.guilds.cache.reduce((a, b) => a + b.memberCount, 0) + ' Members', + 'Discord.js': version, + 'Node.js': process.version, + Plattform: process.platform + ' | ' + process.arch, + Memory: + (process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2) + + 'MB | ' + + (process.memoryUsage().rss / 1024 / 1024).toFixed(2) + + 'MB' + // Quote from: https://github.com/Nich87/Faith + }); +} diff --git a/src/Utils/Builder.ts b/src/Utils/Builder.ts new file mode 100644 index 0000000..caeb480 --- /dev/null +++ b/src/Utils/Builder.ts @@ -0,0 +1,15 @@ +import { EmbedBuilder } from 'discord.js'; + +export class Builder extends EmbedBuilder { + constructor() { + super(); + } + + public build() { + return { embeds: [this] }; + } + + public addEmbeds(embeds: Builder[]) { + return { embeds: [this, ...embeds] }; + } +} diff --git a/src/Utils/ServerData.ts b/src/Utils/ServerData.ts new file mode 100644 index 0000000..4f6977e --- /dev/null +++ b/src/Utils/ServerData.ts @@ -0,0 +1,43 @@ +/** + * サーバーへの参加に関するデータを表すインターフェース + */ +export interface ServerJoinData { + joinMessage: string; + channelId: string; +} + +/** + * サーバーからの離脱に関するデータを表すインターフェース + */ +export interface ServerLeaveData { + leaveMessage: string; + channelId: string; +} + +/** + * サーバーのメンバーに関するデータを表すインターフェース + */ +export interface ServerMemberData { + channelId: string; +} + +/** + * サーバーのメッセージに関するデータを表すインターフェース + */ +export interface ServerMsgData { + channelId: string; +} + +/** + * サーバーのレスポンスに関するデータを表すインターフェース + */ +export interface ServerResponseData { + [key: string]: string; +} + +/** + * サーバーのロールに関するデータを表すインターフェース + */ +export interface ServerRoleData { + channelId: string; +} diff --git a/src/commands/about.ts b/src/commands/about.ts new file mode 100644 index 0000000..dd02913 --- /dev/null +++ b/src/commands/about.ts @@ -0,0 +1,7 @@ +import { embeds } from '../embeds'; +import { Message } from 'discord.js'; + +export async function aboutCommand(message: Message) { + message.reply(embeds.about); + return; +} diff --git a/src/commands/addrole.ts b/src/commands/addrole.ts new file mode 100644 index 0000000..77fa9da --- /dev/null +++ b/src/commands/addrole.ts @@ -0,0 +1,21 @@ +import { embeds } from '../embeds'; +import { Message, PermissionsBitField } from 'discord.js'; + +export async function addroleCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ManageRoles)) + return message.reply(embeds.PermissionError); + if (!message.guild?.members.me?.permissions.has(PermissionsBitField.Flags.ManageRoles)) + return message.reply(embeds.roleAddPermissionError); + const role = message.mentions.roles.first(); + const member = message.mentions.members?.first(); + if (!role || !member) return message.reply(embeds.roleAddHelp); + member.roles + .add(role) + .then(() => { + message.reply(embeds.roleAddSuccess); + }) + .catch(() => { + message.reply(embeds.roleAddError); + }); + return; +} diff --git a/src/commands/avatar.ts b/src/commands/avatar.ts new file mode 100644 index 0000000..18d9a5f --- /dev/null +++ b/src/commands/avatar.ts @@ -0,0 +1,9 @@ +import { Message, EmbedBuilder } from 'discord.js'; + +export async function avatarCommand(message: Message) { + const targetUser = message.mentions.users.first() || message.author; + const avatarURL = targetUser.displayAvatarURL({ size: 1024, extension: 'png' }); + const embed = new EmbedBuilder().setColor('#0099FF').setTitle(`${targetUser.username}のアバター`).setImage(avatarURL); + message.reply({ embeds: [embed] }); + return; +} diff --git a/src/commands/ban.ts b/src/commands/ban.ts new file mode 100644 index 0000000..3905e92 --- /dev/null +++ b/src/commands/ban.ts @@ -0,0 +1,20 @@ +import { embeds } from '../embeds'; +import { Message, PermissionsBitField } from 'discord.js'; + +export async function banCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.BanMembers)) + return message.reply(embeds.PermissionError); + if (!message.guild?.members.me?.permissions.has(PermissionsBitField.Flags.BanMembers)) + return message.reply(embeds.banPermissionError); + const member = message.mentions.members?.first(); + if (!member) return message.reply(embeds.banHelp); + member + .ban() + .then(() => { + message.reply(embeds.banSuccess); + }) + .catch(() => { + message.reply(embeds.banError); + }); + return; +} diff --git a/src/commands/banlist.ts b/src/commands/banlist.ts new file mode 100644 index 0000000..380e7b5 --- /dev/null +++ b/src/commands/banlist.ts @@ -0,0 +1,20 @@ +import { embeds } from '../embeds'; +import { Message, PermissionsBitField, EmbedBuilder } from 'discord.js'; + +export async function banlistCommand(message: Message) { + if (!message.guild?.members.me?.permissions.has(PermissionsBitField.Flags.BanMembers)) + return message.reply(embeds.banlistPermissionError); + await message.guild.bans + .fetch() + .then((bans) => { + const embed = new EmbedBuilder() + .setTitle('Banned Users') + .setDescription(bans.map((ban) => ban.user.username).join('\n') || 'none') + .setColor('#ff0000'); + message.reply({ embeds: [embed] }); + }) + .catch(() => { + message.reply(embeds.banlistError); + }); + return; +} diff --git a/src/commands/banner.ts b/src/commands/banner.ts new file mode 100644 index 0000000..dc9f610 --- /dev/null +++ b/src/commands/banner.ts @@ -0,0 +1,10 @@ +import { Message, EmbedBuilder } from 'discord.js'; + +export async function bannerCommand(message: Message) { + const user = message.mentions.users.first() || message.author; + const banner = user.bannerURL({ size: 1024 }); + if (!banner) return message.reply('バナーが設定されていませんでした。'); + const embed = new EmbedBuilder().setTitle(`${user.username}のバナー`).setImage(banner).setColor('#0099ff'); + message.reply({ embeds: [embed] }); + return; +} diff --git a/src/commands/botinvite.ts b/src/commands/botinvite.ts new file mode 100644 index 0000000..a15bb68 --- /dev/null +++ b/src/commands/botinvite.ts @@ -0,0 +1,22 @@ +import { ChannelType, Message } from 'discord.js'; + +export async function botinviteCommand(message: Message) { + if (message.author.id !== '895050958441160734') return message.react('❓'); + const args = message.content.split(' '); + if (args.length !== 2) { + message.reply('GUILD_IDを入力してください。'); + return; + } + const guildId = args[1]; + const guild = message.client.guilds.cache.get(guildId); + if (!guild) { + message.reply('指定されたサーバーに参加していません。'); + return; + } + const channel = guild.channels.cache.random(); + if (!channel) return; + if (channel.type !== ChannelType.GuildText) return; + const invite = await channel.createInvite(); + if (!invite) return; + message.reply(invite.url); +} diff --git a/src/commands/clear.ts b/src/commands/clear.ts new file mode 100644 index 0000000..e25d013 --- /dev/null +++ b/src/commands/clear.ts @@ -0,0 +1,31 @@ +import { embeds } from '../embeds'; +import { ChannelType, Message, PermissionsBitField } from 'discord.js'; + +export async function clearCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ManageMessages)) + return message.reply(embeds.PermissionError); + if (!message.guild?.members.me?.permissions.has(PermissionsBitField.Flags.ManageMessages)) + return message.reply(embeds.clearPermissionError); + const member = message.mentions.users.first(); + const amountString = message.content.split(' ')[2]; + const amount = Number(amountString); + if (!member || isNaN(amount)) { + return message.reply(embeds.clearHelp); + } + if (amount < 1 || amount > 100) { + return message.reply('数字は1から100までの間で指定してください'); + } + const messages = await message.channel.messages.fetch({ limit: 100 }); + const userMessages = Array.from(messages.filter((m) => m.author.id === member.id).values()).slice(0, amount); + if (message.channel.type !== ChannelType.GuildText) return; + message.channel + .bulkDelete(userMessages) + .then(() => { + message.reply( + `メッセージ${userMessages.length}件を削除しました\n(指定した数より削除した数が少ない場合があるのはDiscord側の仕様です)` + ); + }) + .catch(() => { + message.reply('メッセージを削除できませんでした。'); + }); +} diff --git a/src/commands/deletejoin.ts b/src/commands/deletejoin.ts new file mode 100644 index 0000000..e80382b --- /dev/null +++ b/src/commands/deletejoin.ts @@ -0,0 +1,22 @@ +import { ServerJoinData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, Message, PermissionsBitField } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function deletejoinCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.Administrator)) + return message.reply(embeds.PermissionError); + const guild = message.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/join_messages.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + delete data[serverId]; + writeFile('./database/join_messages.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + console.error(err); + } else { + message.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/commands/deleteleave.ts b/src/commands/deleteleave.ts new file mode 100644 index 0000000..c3df1d7 --- /dev/null +++ b/src/commands/deleteleave.ts @@ -0,0 +1,20 @@ +import { embeds } from '../embeds'; +import { Guild, Message, PermissionsBitField } from 'discord.js'; +import { writeFile } from 'fs'; + +export async function deleteleaveCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.Administrator)) + return message.reply(embeds.PermissionError); + const guild = message.guild as Guild; + const serverId = guild.id; + const data = JSON.parse('./database/leave_messages.json'); + delete data[serverId]; + writeFile('./database/leave_messages.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + console.error(err); + } else { + message.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/commands/help.ts b/src/commands/help.ts new file mode 100644 index 0000000..5f75102 --- /dev/null +++ b/src/commands/help.ts @@ -0,0 +1,7 @@ +import { embeds } from '../embeds'; +import { Message } from 'discord.js'; + +export async function helpCommand(message: Message) { + message.reply(embeds.help); + return; +} diff --git a/src/commands/index.ts b/src/commands/index.ts new file mode 100644 index 0000000..9941bea --- /dev/null +++ b/src/commands/index.ts @@ -0,0 +1,81 @@ +import { aboutCommand } from './about'; +import { addroleCommand } from './addrole'; +import { avatarCommand } from './avatar'; +import { banCommand } from './ban'; +import { banlistCommand } from './banlist'; +import { bannerCommand } from './banner'; +import { botinviteCommand } from './botinvite'; +import { clearCommand } from './clear'; +import { deletejoinCommand } from './deletejoin'; +import { deleteleaveCommand } from './deleteleave'; +import { helpCommand } from './help'; +import { inlistCommand } from './inlist'; +import { inviteCommand } from './invite'; +import { joinmsgCommand } from './joinmsg'; +import { kickCommand } from './kick'; +import { leavemsgCommand } from './leavemsg'; +import { mcskinCommand } from './mcskin'; +import { mcstatusCommand } from './mcstatus'; +import { memberlogCommand } from './memberlog'; +import { memberlogstopCommand } from './memberlogstop'; +import { msglogCommand } from './msglog'; +import { msglogstopCommand } from './msglogstop'; +import { pingCommand } from './ping'; +import { pollCommand } from './poll'; +import { remroleCommand } from './remrole'; +import { resdeleteCommand } from './resdelete'; +import { resnowCommand } from './resnow'; +import { responseCommand } from './response'; +import { restartCommand } from './restart'; +import { rolelogCommand } from './rolelog'; +import { rolelogstopCommand } from './rolelogstop'; +import { runCommand } from './run'; +import { scriptCommand } from './script'; +import { searchCommand } from './search'; +import { serverCommand } from './server'; +import { statusCommand } from './status'; +import { timeoutCommand } from './timeout'; +import { untimeoutCommand } from './untimeout'; +import { userCommand } from './user'; + +export const commands = { + help: helpCommand, + about: aboutCommand, + addrole: addroleCommand, + avatar: avatarCommand, + ban: banCommand, + banlist: banlistCommand, + banner: bannerCommand, + botinvite: botinviteCommand, + clear: clearCommand, + deletejoin: deletejoinCommand, + deleteleave: deleteleaveCommand, + inlist: inlistCommand, + invite: inviteCommand, + joinmsg: joinmsgCommand, + kick: kickCommand, + leavemsg: leavemsgCommand, + mcskin: mcskinCommand, + mcstatus: mcstatusCommand, + memberlog: memberlogCommand, + memberlogstop: memberlogstopCommand, + msglog: msglogCommand, + msglogstop: msglogstopCommand, + ping: pingCommand, + poll: pollCommand, + remrole: remroleCommand, + resdelete: resdeleteCommand, + resnow: resnowCommand, + response: responseCommand, + restart: restartCommand, + rolelog: rolelogCommand, + rolelogstop: rolelogstopCommand, + run: runCommand, + script: scriptCommand, + search: searchCommand, + server: serverCommand, + status: statusCommand, + timeout: timeoutCommand, + untimeout: untimeoutCommand, + user: userCommand +}; diff --git a/src/commands/inlist.ts b/src/commands/inlist.ts new file mode 100644 index 0000000..f57061b --- /dev/null +++ b/src/commands/inlist.ts @@ -0,0 +1,20 @@ +import { Message } from 'discord.js'; +import { writeFileSync } from 'fs'; + +export async function inlistCommand(message: Message) { + if (message.author.id !== '895050958441160734') return message.react('❓'); + const guildList = [] as string[]; + message.client.guilds.cache.forEach((guild) => { + guildList.push(`${guild.name} : ${guild.id}`); + }); + const fileName = 'guild-list.txt'; + writeFileSync(fileName, guildList.join('\n')); + message.reply({ + files: [ + { + attachment: fileName, + name: fileName + } + ] + }); +} diff --git a/src/commands/invite.ts b/src/commands/invite.ts new file mode 100644 index 0000000..c0be430 --- /dev/null +++ b/src/commands/invite.ts @@ -0,0 +1,18 @@ +import { embeds } from '../embeds'; +import { ChannelType, Message, PermissionsBitField } from 'discord.js'; + +export async function inviteCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.CreateInstantInvite)) + return message.reply(embeds.PermissionError); + if (!message.guild?.members.me?.permissions.has(PermissionsBitField.Flags.CreateInstantInvite)) + return message.reply(embeds.invitePermissionError); + if (message.channel.type !== ChannelType.GuildText) return; + message.channel + .createInvite() + .then((invite) => { + message.reply(invite.url); + }) + .catch(() => { + message.reply(embeds.inviteError); + }); +} diff --git a/src/commands/joinmsg.ts b/src/commands/joinmsg.ts new file mode 100644 index 0000000..69b3acf --- /dev/null +++ b/src/commands/joinmsg.ts @@ -0,0 +1,27 @@ +import { ServerJoinData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, Message, PermissionsBitField } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function joinmsgCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.Administrator)) + return message.reply(embeds.PermissionError); + const detail = message.content.slice('mc!joinmsg'.length).trim(); + const channel = message.channel; + const guild = message.guild as Guild; + const serverId = guild.id; + if (!detail) return message.reply(embeds.joinmsgHelp); + const rawData = readFileSync('./database/join_messages.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + data[serverId] = { + joinMessage: detail, + channelId: channel.id + }; + writeFile(`./database/join_messages.json`, JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + } else { + message.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/commands/kick.ts b/src/commands/kick.ts new file mode 100644 index 0000000..07ca4f2 --- /dev/null +++ b/src/commands/kick.ts @@ -0,0 +1,19 @@ +import { embeds } from '../embeds'; +import { PermissionsBitField, Message } from 'discord.js'; + +export async function kickCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.KickMembers)) + return message.reply('コマンドを使用する権限がありません。'); + if (!message.guild?.members.me?.permissions.has(PermissionsBitField.Flags.KickMembers)) + return message.reply(embeds.kickPermissionError); + const member = message.mentions.members?.first(); + if (!member) return message.reply(embeds.kickHelp); + member + .kick() + .then(() => { + message.reply(embeds.kickSuccess); + }) + .catch(() => { + message.reply(embeds.kickError); + }); +} diff --git a/src/commands/leavemsg.ts b/src/commands/leavemsg.ts new file mode 100644 index 0000000..9e42482 --- /dev/null +++ b/src/commands/leavemsg.ts @@ -0,0 +1,27 @@ +import { ServerLeaveData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, Message, PermissionsBitField } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function leavemsgCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.Administrator)) + return message.reply(embeds.PermissionError); + const detail = message.content.slice('mc!leavemsg'.length).trim(); + const channel = message.channel; + const guild = message.guild as Guild; + const serverId = guild.id; + if (!detail) message.reply(embeds.leavemsgHelp); + const rawData = readFileSync('./database/leave_messages.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + data[serverId] = { + leaveMessage: detail, + channelId: channel.id + }; + writeFile('./database/leave_messages.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + } else { + message.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/commands/mcskin.ts b/src/commands/mcskin.ts new file mode 100644 index 0000000..ba3fe45 --- /dev/null +++ b/src/commands/mcskin.ts @@ -0,0 +1,13 @@ +import { embeds } from '../embeds'; +import { Message, EmbedBuilder } from 'discord.js'; + +export async function mcskinCommand(message: Message) { + const name = message.content.split(' ')[1]; + if (!name) return message.reply(embeds.mcskinHelp); + const embed = new EmbedBuilder() + .setTitle(`${name}のスキン`) + .setColor('#0099ff') + .setImage(`https://minotar.net/armor/body/${name}/100.png`) + .setThumbnail(`https://minotar.net/skin/${name}`); + message.reply({ embeds: [embed] }); +} diff --git a/src/commands/mcstatus.ts b/src/commands/mcstatus.ts new file mode 100644 index 0000000..c648375 --- /dev/null +++ b/src/commands/mcstatus.ts @@ -0,0 +1,34 @@ +import { embeds } from '../embeds'; +import axios from 'axios'; +import { Message, EmbedBuilder } from 'discord.js'; + +export async function mcstatusCommand(message: Message) { + const mcServerIp = message.content.split(' ')[1]; + const mcServerPort = message.content.split(' ')[2] ? message.content.split(' ')[2] : '25565'; + const url = `https://mcapi.us/server/status?ip=${mcServerIp}&port=${mcServerPort}`; + if (!mcServerIp) return message.reply(embeds.mcstatusHelp); + axios + .get(url) + .then((response) => { + const data = response.data; + const status = data.status; + const online = data.online.toString(); + const servername = data.server.name; + const maxplayer = data.players.max.toString(); + const playerCount = data.players.now.toString(); + const embed = new EmbedBuilder() + .setColor('#0099ff') + .setTitle(`${mcServerIp}のステータス`) + .addFields( + { name: 'status', value: status }, + { name: 'online', value: online }, + { name: 'サーバーのバージョン', value: servername }, + { name: '最大プレイヤー数', value: maxplayer }, + { name: 'プレイヤー数', value: playerCount } + ); + message.reply({ embeds: [embed] }); + }) + .catch(() => { + message.reply(embeds.mcstatusError); + }); +} diff --git a/src/commands/memberlog.ts b/src/commands/memberlog.ts new file mode 100644 index 0000000..5ba0137 --- /dev/null +++ b/src/commands/memberlog.ts @@ -0,0 +1,25 @@ +import { ServerMemberData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, Message, PermissionsBitField } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function memberlogCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return message.reply(embeds.PermissionError); + const channel = message.channel; + const guild = message.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/memberlogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + data[serverId] = { + channelId: channel.id + }; + writeFile('./database/memberlogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + console.error(err); + } else { + message.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/commands/memberlogstop.ts b/src/commands/memberlogstop.ts new file mode 100644 index 0000000..b8aba2c --- /dev/null +++ b/src/commands/memberlogstop.ts @@ -0,0 +1,22 @@ +import { ServerMemberData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, Message, PermissionsBitField } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function memberlogstopCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return message.reply(embeds.PermissionError); + const guild = message.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/memberlogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + delete data[serverId]; + writeFile('./database/memberlogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + console.error(err); + } else { + message.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/commands/msglog.ts b/src/commands/msglog.ts new file mode 100644 index 0000000..6e0d627 --- /dev/null +++ b/src/commands/msglog.ts @@ -0,0 +1,24 @@ +import { ServerMsgData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, Message, PermissionsBitField } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function msglogCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return message.reply(embeds.PermissionError); + const channel = message.channel; + const guild = message.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/msglogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + data[serverId] = { + channelId: channel.id + }; + writeFile('./database/msglogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + } else { + message.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/commands/msglogstop.ts b/src/commands/msglogstop.ts new file mode 100644 index 0000000..efecc94 --- /dev/null +++ b/src/commands/msglogstop.ts @@ -0,0 +1,22 @@ +import { ServerMsgData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, Message, PermissionsBitField } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function msglogstopCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return message.reply(embeds.PermissionError); + const guild = message.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/msglogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + delete data[serverId]; + writeFile('./database/msglogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + console.error(err); + } else { + message.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/commands/ping.ts b/src/commands/ping.ts new file mode 100644 index 0000000..8f35a39 --- /dev/null +++ b/src/commands/ping.ts @@ -0,0 +1,9 @@ +import { Message, EmbedBuilder } from 'discord.js'; + +export async function pingCommand(message: Message) { + const embed = new EmbedBuilder() + .setColor('#0099ff') + .setTitle('Pong!:ping_pong:') + .setDescription(`${message.client.ws.ping}ms`); + message.reply({ embeds: [embed] }); +} diff --git a/src/commands/poll.ts b/src/commands/poll.ts new file mode 100644 index 0000000..6d86d69 --- /dev/null +++ b/src/commands/poll.ts @@ -0,0 +1,19 @@ +import { embeds } from '../embeds'; +import { Message, EmbedBuilder } from 'discord.js'; + +const reactions = ['1️⃣', '2️⃣', '3️⃣', '4️⃣', '5️⃣', '6️⃣', '7️⃣', '8️⃣', '9️⃣', '🔟']; + +export async function pollCommand(message: Message) { + const args = message.content.split(' '); + const [title, ...options] = args.slice(1); + if (!title || options.length === 0) return message.reply(embeds.pollHelp); + if (options.length > 10) return message.reply('選択肢は10個までです。'); + const embed = new EmbedBuilder() + .setTitle(title) + .setDescription(options.map((option, index) => `${reactions[index]} ${option}`).join('\n')); + + const pollMessage = await message.reply({ embeds: [embed] }); + options.forEach(async (_, index) => { + await pollMessage.react(reactions[index]); + }); +} diff --git a/src/commands/remrole.ts b/src/commands/remrole.ts new file mode 100644 index 0000000..76cd40d --- /dev/null +++ b/src/commands/remrole.ts @@ -0,0 +1,20 @@ +import { embeds } from '../embeds'; +import { Message, PermissionsBitField } from 'discord.js'; + +export async function remroleCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ManageRoles)) + return message.reply(embeds.PermissionError); + if (!message.guild?.members.me?.permissions.has(PermissionsBitField.Flags.ManageRoles)) + return message.reply(embeds.remrolePermissionError); + const role = message.mentions.roles.first(); + const member = message.mentions.members?.first(); + if (!role || !member) return message.reply(embeds.remroleHelp); + member.roles + .remove(role) + .then(() => { + message.reply(embeds.remroleSuccess); + }) + .catch(() => { + message.reply(embeds.remroleError); + }); +} diff --git a/src/commands/resdelete.ts b/src/commands/resdelete.ts new file mode 100644 index 0000000..0f230e2 --- /dev/null +++ b/src/commands/resdelete.ts @@ -0,0 +1,28 @@ +import { ServerResponseData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { PermissionsBitField, Message, Guild } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function resdeleteCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ManageMessages)) + return message.reply('貴方にはこのコマンドを使用する権限がありません。'); + const keyword = message.content.slice('mc!resdelete'.length).trim(); + const guild = message.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/responses.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + const serverData = data[serverId]; + if (!serverData || !serverData[keyword]) + return message.reply(`キーワード 「${keyword}」 のレスポンスは登録されていません。`); + if (!keyword) return message.reply(embeds.resdeleteHelp); + delete serverData[keyword]; + + writeFile('./database/responses.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + console.error(err); + } else { + message.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/commands/resnow.ts b/src/commands/resnow.ts new file mode 100644 index 0000000..f772b5e --- /dev/null +++ b/src/commands/resnow.ts @@ -0,0 +1,21 @@ +import { ServerResponseData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, Message } from 'discord.js'; +import { readFileSync } from 'fs'; + +export async function resnowCommand(message: Message) { + const guild = message.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/responses.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + const serverData = data[serverId]; + if (!serverData || Object.keys(serverData).length === 0) { + message.reply(embeds.resnowEmpty); + return; + } + let responseList = '登録されているレスポンス一覧\n'; + for (const keyword in serverData) { + responseList += `${keyword}: ${serverData[keyword]}\n`; + } + message.reply(responseList); +} diff --git a/src/commands/response.ts b/src/commands/response.ts new file mode 100644 index 0000000..59347eb --- /dev/null +++ b/src/commands/response.ts @@ -0,0 +1,30 @@ +import { ServerResponseData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, Message, PermissionsBitField } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function responseCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ManageMessages)) + return message.reply(embeds.PermissionError); + const arggs = message.content.slice('mc!response'.length).trim().split(/ +/); + const keyword = message.content.split(' ')[1]; + const response = arggs.slice(1).join(' '); + const guild = message.guild as Guild; + const serverId = guild.id; + if (!keyword || !response) return message.reply(embeds.responseHelp); + const rawData = readFileSync('./database/responses.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + let serverData = data[serverId]; + if (!serverData) { + serverData = {}; + data[serverId] = serverData; + } + serverData[keyword] = response; + writeFile('./database/responses.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + } else { + message.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/commands/restart.ts b/src/commands/restart.ts new file mode 100644 index 0000000..dd03a08 --- /dev/null +++ b/src/commands/restart.ts @@ -0,0 +1,7 @@ +import { Message } from 'discord.js'; + +export async function restartCommand(message: Message) { + if (message.author.id !== '895050958441160734') return; + await message.react('✅'); + process.exit(); +} diff --git a/src/commands/rolelog.ts b/src/commands/rolelog.ts new file mode 100644 index 0000000..43e0f04 --- /dev/null +++ b/src/commands/rolelog.ts @@ -0,0 +1,25 @@ +import { ServerRoleData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Message, PermissionsBitField, Guild } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function rolelogCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return message.reply(embeds.PermissionError); + const channel = message.channel; + const guild = message.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/rolelogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + data[serverId] = { + channelId: channel.id + }; + writeFile('./database/rolelogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + console.error(err); + } else { + message.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/commands/rolelogstop.ts b/src/commands/rolelogstop.ts new file mode 100644 index 0000000..4df5da0 --- /dev/null +++ b/src/commands/rolelogstop.ts @@ -0,0 +1,22 @@ +import { ServerRoleData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Message, PermissionsBitField, Guild } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function rolelogstopCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return message.reply(embeds.PermissionError); + const guild = message.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/rolelogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + delete data[serverId]; + writeFile('./database/rolelogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + message.reply(embeds.defaultError); + console.error(err); + } else { + message.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/commands/run.ts b/src/commands/run.ts new file mode 100644 index 0000000..1f2a884 --- /dev/null +++ b/src/commands/run.ts @@ -0,0 +1,27 @@ +import { Message } from 'discord.js'; + +export async function runCommand(message: Message) { + if (message.author.id !== '895050958441160734') return message.react('❓'); + const code = message.content + .slice(`mc!run`.length) + .trim() + .replace(/^```(js)?/, '') + .replace(/```$/, '') + .trim(); + if (!code) { + return message.reply('?????????:middle_finger:'); + } + (async function () { + const asyncEval = async (code: string) => { + return await eval(`(async () => {${code}})()`); + }; + await asyncEval(code) + .then(() => { + message.react('✅'); + }) + .catch((err) => { + message.reply(`${err}`); + message.react('❎'); + }); + })(); +} diff --git a/src/commands/script.ts b/src/commands/script.ts new file mode 100644 index 0000000..a250cf0 --- /dev/null +++ b/src/commands/script.ts @@ -0,0 +1,15 @@ +import { exec } from 'child_process'; +import { Message } from 'discord.js'; + +export async function scriptCommand(message: Message) { + if (message.author.id !== '895050958441160734') return message.react('❌'); + const cmd = message.content.replace('mc!script ', ''); + exec(cmd, (error, stdout, stderr) => { + if (error) { + message.reply(`Error: ${error}`); + return; + } + message.reply(`stdout: ${stdout}`); + message.reply(`stderr: ${stderr}`); + }); +} diff --git a/src/commands/search.ts b/src/commands/search.ts new file mode 100644 index 0000000..a0b6341 --- /dev/null +++ b/src/commands/search.ts @@ -0,0 +1,51 @@ +import { embeds } from '../embeds'; +import axios from 'axios'; +import { Message, EmbedBuilder } from 'discord.js'; +import { config } from 'dotenv'; + +config(); + +export async function searchCommand(message: Message) { + const query = message.content.split(' ').slice(1).join(' '); + if (!query) { + message.reply(embeds.searchHelp); + return; + } + axios + .get('https://www.googleapis.com/customsearch/v1', { + params: { + key: process.env.GOOGLE_KEY, + cx: process.env.GOOGLE_CX, + q: query + } + }) + .then((response) => { + const data = response.data; + if (!data.items) { + message.reply('検索結果が見つかりませんでした。'); + return; + } + const results = data.items.slice(0, 5); + const embed = results.reduce( + ( + embedBuilder: { addFields: (arg0: { name: string; value: string }) => EmbedBuilder }, + result: { title: string; snippet: string; link: string } + ) => { + return embedBuilder.addFields({ + name: `${result.title}`, + value: `[${result.snippet}](${result.link})` + }); + }, + new EmbedBuilder().setColor('#0099FF') + ); + + message.reply({ + content: `「${query}」の検索結果`, + embeds: [embed] + }); + }) + .catch((error) => { + console.error(error); + message.reply('検索に失敗しました。'); + }); +} diff --git a/src/commands/server.ts b/src/commands/server.ts new file mode 100644 index 0000000..e0d5d33 --- /dev/null +++ b/src/commands/server.ts @@ -0,0 +1,25 @@ +import { Message, EmbedBuilder, ChannelType, Guild } from 'discord.js'; + +export async function serverCommand(message: Message) { + const guild = (await message.guild?.fetch()) as Guild; + const owner = await message.guild?.fetchOwner(); + const createdDate = new Date(guild.createdAt).toLocaleString('ja-JP', { timeZone: 'Asia/Tokyo' }); + const embed = new EmbedBuilder() + .setColor('#0099ff') + .setTitle(guild.name) + .addFields( + { name: '基本情報', value: `名前: ${guild.name}(${guild.id})\n作成日: ${createdDate}\nオーナー: ${owner}` }, + { + name: '統計', + value: `メンバー数: ${guild.memberCount}\nテキストチャンネル数: ${ + guild.channels.cache.filter((c) => c.type === ChannelType.GuildText).size + }\nボイスチャンネル数: ${ + guild.channels.cache.filter((c) => c.type === ChannelType.GuildVoice).size + }\nカテゴリー数: ${guild.channels.cache.filter((c) => c.type === ChannelType.GuildCategory).size}\n絵文字数: ${ + guild.emojis.cache.size + }` + } + ) + .setThumbnail(guild.iconURL()); + message.reply({ embeds: [embed] }); +} diff --git a/src/commands/status.ts b/src/commands/status.ts new file mode 100644 index 0000000..1a7183f --- /dev/null +++ b/src/commands/status.ts @@ -0,0 +1,30 @@ +import { Message, EmbedBuilder } from 'discord.js'; +import osu from 'node-os-utils'; +import os from 'os'; + +export async function statusCommand(message: Message) { + const guildCount = message.client.guilds.cache.size; + const userCount = message.client.guilds.cache.map((guild) => guild.memberCount).reduce((p, c) => p + c); + const ping = message.client.ws.ping; + const totalMem = os.totalmem(); + const freeMem = os.freemem(); + const usedMem = totalMem - freeMem; + const usedMemPercentage = Math.round((usedMem / totalMem) * 10000) / 100; + const cpu = osu.cpu; + const cpuUsagePercentage = parseFloat((await cpu.usage()).toFixed(2)); + const barLength = 20; + const usedLength = Math.max(1, Math.round(barLength * (cpuUsagePercentage / 100))); + const cpuBar = '```[' + '='.repeat(usedLength) + ' '.repeat(barLength - usedLength) + ']```'; + const memBarLength = 20; + const memUsedLength = Math.round(memBarLength * (usedMemPercentage / 100)); + const memBar = '```[' + '='.repeat(memUsedLength) + ' '.repeat(memBarLength - memUsedLength) + ']```'; + const statusEmbed = new EmbedBuilder() + .setTitle('Botのステータス') + .setColor('#0099ff') + .addFields( + { name: '現在のステータス', value: `サーバー数: ${guildCount}\nユーザー数: ${userCount}\nPing: ${ping}ms` }, + { name: 'CPU使用率', value: `${cpuUsagePercentage}%\n${cpuBar}` }, + { name: `メモリ使用率`, value: `${usedMemPercentage}%\n${memBar}` } + ); + message.reply({ embeds: [statusEmbed] }); +} diff --git a/src/commands/timeout.ts b/src/commands/timeout.ts new file mode 100644 index 0000000..9009d5b --- /dev/null +++ b/src/commands/timeout.ts @@ -0,0 +1,22 @@ +import { embeds } from '../embeds'; +import { Message, PermissionsBitField } from 'discord.js'; + +export async function timeoutCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ModerateMembers)) + return message.reply(embeds.PermissionError); + if (!message.guild?.members.me?.permissions.has(PermissionsBitField.Flags.ModerateMembers)) + return message.reply(embeds.timeoutPermissionError); + const args = message.content.split(' '); + const member = message.mentions.members?.first(); + const time = parseInt(args[2]); + if (!member || isNaN(time)) return message.reply(embeds.timeoutHelp); + if (time <= 0) return message.reply('0分以下は指定できません。'); + member + .timeout(time * 60000) + .then(() => { + message.reply(embeds.timeoutSuccess); + }) + .catch(() => { + message.reply(embeds.timeoutError); + }); +} diff --git a/src/commands/untimeout.ts b/src/commands/untimeout.ts new file mode 100644 index 0000000..bb5c2ab --- /dev/null +++ b/src/commands/untimeout.ts @@ -0,0 +1,23 @@ +import { embeds } from '../embeds'; +import { PermissionsBitField, Message } from 'discord.js'; + +export async function untimeoutCommand(message: Message) { + if (!message.member?.permissions.has(PermissionsBitField.Flags.ModerateMembers)) + return message.reply('このコマンドを使用する権限がありません'); + if (!message.guild?.members.me?.permissions.has(PermissionsBitField.Flags.ModerateMembers)) + return message.reply(embeds.timeoutPermissionError); + const member = message.mentions.members?.first(); + if (!member) return message.reply(embeds.untimeoutHelp); + if (member.communicationDisabledUntil !== null) { + member + .timeout(null) + .then(() => { + message.reply(embeds.untimeoutSuccess); + }) + .catch(() => { + message.reply(embeds.untimeoutError); + }); + } else { + message.reply(embeds.untimeoutNo); + } +} diff --git a/src/commands/user.ts b/src/commands/user.ts new file mode 100644 index 0000000..67a2b94 --- /dev/null +++ b/src/commands/user.ts @@ -0,0 +1,22 @@ +import { Message, EmbedBuilder, GuildMember } from 'discord.js'; + +export async function userCommand(message: Message) { + const member = message.mentions.members?.first() ?? (message.member as GuildMember); + const createdDate = new Date(member.user.createdAt).toLocaleString('ja-JP', { timeZone: 'Asia/Tokyo' }); + const nickname = member.nickname ?? 'なし'; + if (!member.joinedAt) return; + const joinedDate = new Date(member.joinedAt.toLocaleString('ja-JP', { timeZone: 'Asia/Tokyo' })); + const userEmbed = new EmbedBuilder() + .setColor('#0099ff') + .setTitle(member.user.username) + .addFields( + { name: 'ユーザー名', value: member.user.username }, + { name: 'ニックネーム', value: nickname }, + { name: 'ユーザーID', value: member.id }, + { name: 'アカウント作成日', value: createdDate.toString() }, + { name: 'サーバー参加日', value: joinedDate.toString() } + ) + .setThumbnail(member.user.displayAvatarURL()) + .setTimestamp(); + message.reply({ embeds: [userEmbed] }); +} diff --git a/src/deploy-commands.ts b/src/deploy-commands.ts new file mode 100644 index 0000000..f7d8b1f --- /dev/null +++ b/src/deploy-commands.ts @@ -0,0 +1,102 @@ +import { REST, Routes, SlashCommandBuilder } from 'discord.js'; +import { config } from 'dotenv'; + +config(); + +const commands = [ + new SlashCommandBuilder().setName('about').setDescription('このBotについて'), + new SlashCommandBuilder() + .setName('addrole') + .setDescription('ロールを付与します') + .addRoleOption((option) => option.setName('role').setDescription('付与するロール').setRequired(true)) + .addUserOption((option) => option.setName('member').setDescription('ロールを付与するメンバー').setRequired(true)), + new SlashCommandBuilder() + .setName('avatar') + .setDescription('ユーザーのアバターを表示します') + .addUserOption((option) => option.setName('user').setDescription('アバターを表示するユーザー')), + new SlashCommandBuilder() + .setName('ban') + .setDescription('ユーザーをBANします') + .addUserOption((option) => option.setName('member').setDescription('BANするユーザー').setRequired(true)), + new SlashCommandBuilder().setName('banlist').setDescription('BANされたユーザーを表示します'), + new SlashCommandBuilder() + .setName('banner') + .setDescription('ユーザーのバナーを表示します') + .addUserOption((option) => option.setName('user').setDescription('バナーを表示するユーザー')), + new SlashCommandBuilder() + .setName('clear') + .setDescription('指定したメンバーのメッセージを削除します') + .addUserOption((option) => + option.setName('member').setDescription('メッセージを削除するメンバー').setRequired(true) + ) + .addIntegerOption((option) => option.setName('amount').setDescription('削除するメッセージの数').setRequired(true)), + new SlashCommandBuilder().setName('deletejoin').setDescription('入室メッセージを削除します'), + new SlashCommandBuilder().setName('deleteleave').setDescription('退室メッセージを削除します'), + new SlashCommandBuilder().setName('help').setDescription('ヘルプを表示します'), + new SlashCommandBuilder().setName('inlist').setDescription('管理者限定コマンド'), + new SlashCommandBuilder().setName('invite').setDescription('サーバーのの招待リンクを表示します'), + new SlashCommandBuilder() + .setName('joinmsg') + .setDescription('入室メッセージを設定します') + .addStringOption((option) => option.setName('detail').setDescription('入室メッセージ').setRequired(true)), + new SlashCommandBuilder() + .setName('kick') + .setDescription('ユーザーをキックします') + .addUserOption((option) => option.setName('member').setDescription('キックするユーザー').setRequired(true)), + new SlashCommandBuilder() + .setName('leavemsg') + .setDescription('退室メッセージを設定します') + .addStringOption((option) => option.setName('detail').setDescription('退室メッセージ').setRequired(true)), + new SlashCommandBuilder() + .setName('mcskin') + .setDescription('Minecraftのスキンを表示します') + .addStringOption((option) => option.setName('user').setDescription('スキンを表示するユーザー').setRequired(true)), + new SlashCommandBuilder() + .setName('mcstatus') + .setDescription('Minecraftサーバーのステータスを表示します') + .addStringOption((option) => option.setName('address').setDescription('サーバーアドレス').setRequired(true)) + .addIntegerOption((option) => option.setName('port').setDescription('ポート番号').setRequired(false)), + new SlashCommandBuilder().setName('memberlog').setDescription('メンバーログを設定します'), + new SlashCommandBuilder().setName('memberlogstop').setDescription('メンバーログを停止します'), + new SlashCommandBuilder().setName('msglog').setDescription('メッセージログを設定します'), + new SlashCommandBuilder().setName('msglogstop').setDescription('メッセージログを停止します'), + new SlashCommandBuilder().setName('ping').setDescription('BotのPingを表示します'), + new SlashCommandBuilder() + .setName('remrole') + .setDescription('ロールを剥奪します') + .addRoleOption((option) => option.setName('role').setDescription('剥奪するロール').setRequired(true)) + .addUserOption((option) => option.setName('member').setDescription('ロールを剥奪するメンバー').setRequired(true)), + new SlashCommandBuilder() + .setName('search') + .setDescription('Googleで検索します') + .addStringOption((option) => option.setName('query').setDescription('検索する内容').setRequired(true)), + new SlashCommandBuilder().setName('server').setDescription('サーバーの情報を表示します'), + new SlashCommandBuilder().setName('status').setDescription('Botのステータスを表示します'), + new SlashCommandBuilder() + .setName('timeout') + .setDescription('タイムアウトします') + .addUserOption((option) => option.setName('member').setDescription('タイムアウトするメンバー').setRequired(true)) + .addIntegerOption((option) => option.setName('time').setDescription('タイムアウトする時間(分)').setRequired(true)), + new SlashCommandBuilder() + .setName('untimeout') + .setDescription('タイムアウトを解除します') + .addUserOption((option) => + option.setName('member').setDescription('タイムアウトを解除するメンバー').setRequired(true) + ), + new SlashCommandBuilder() + .setName('user') + .setDescription('ユーザーの情報を表示します') + .addUserOption((option) => option.setName('user').setDescription('ユーザー')) +]; + +const rest = new REST().setToken(process.env.DISCORD_TOKEN!); + +(async () => { + try { + await rest.put(Routes.applicationCommands(process.env.CLIENT_ID!), { body: commands }); + + console.log('Successfully registered application commands.'); + } catch (error) { + console.error(error); + } +})(); diff --git a/src/embeds/index.ts b/src/embeds/index.ts new file mode 100644 index 0000000..64ea623 --- /dev/null +++ b/src/embeds/index.ts @@ -0,0 +1,355 @@ +import { Builder } from '../Utils/Builder'; + +export const embeds = { + embed: Builder, + help: new Builder() + .setColor('#0099ff') + .setTitle('使用可能コマンド') + .setURL('https://chproducts.tech/') + .setAuthor({ + name: 'サポートサーバー', + iconURL: 'https://i.imgur.com/fEtyr1I.png', + url: 'https://discord.gg/2QnCs2yqWu' + }) + .setDescription('Created By MotiCAT') + .addFields( + { name: 'Bot', value: '`help`, `about`, `ping`, `status`' }, + { name: 'Commands', value: '`server`, `user`, `list`, `invite`, `janken`, `search`' }, + { + name: 'Server', + value: '`joinmsg`, `leavemsg`, `deletejoin`, `deleteleave`, `response`, `resdelete`, `resnow`' + }, + { name: 'Minecraft', value: '`mcskin`, `mcstatus`' }, + { name: 'Moderation', value: '`ban`, `unban`, `kick`, `addrole`, `remrole`, `clear`, `timeout`, `untimeout`' }, + { name: 'Logs', value: '`msglog`, `msglogstop`, `rolelog`, `rolelogstop`, `memberlog`, `memberlogstop`' } + ) + .setTimestamp() + .setFooter({ text: 'Motcher v2.0', iconURL: 'https://i.imgur.com/fEtyr1I.png' }) + .build(), + about: new Builder() + .setTitle('Motcher') + .setColor('#0099ff') + .setDescription('適当に自己満で作ってたら\nそれなりの機能ができてた便利(?)bot') + .addFields( + { name: '<:bot:1078601624177627176>botについて', value: '```\nName: Motcher\n作者: moticat\nVersion: 2.0\n```' }, + { name: '<:command:1078633336869748796>基本コマンド', value: '```\nmc!help\nまたは\n/help\n```' }, + { name: '\n', value: '\n' }, + { name: ':gear:詳細情報', value: '```\ndiscord.js V14.13.0\nNode V18.15.0\n100以上のサーバーに参加中\n```' }, + { + name: ':computer:動作環境', + value: '```\nOS: Ubuntu 22.04 LTS\nCPU: Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz\nRAM: 2GB```' + }, + { + name: ':arrow_up:botの歴史', + value: + '```diff\n+ 2023/05/21 認証\n+ 2023/02/21 v1.0 Release\n- 2023/02/10 暴走\n+ 2022/05/15 Botアカウントの作成\n```' + }, + { + name: ':link:関連リンク', + value: + '[公式サイト](https://chproducts.github.io/docs/Motcher.html)\n[Support](https://discord.gg/2QnCs2yqWu)\n[Invite](https://discord.com/api/oauth2/authorize?client_id=975234367246975027&permissions=1540353817799&scope=applications.commands%20bot)' + } + ) + .setThumbnail('https://i.imgur.com/FROcN1k.png') + .build(), + roleAddError: new Builder() + .addFields({ + name: 'エラー', + value: + '指定されたロールを付与できませんでした。\n(Bot自身についているものより順位の高いロール、同順位のロールを付与できないDiscordの仕様です。)' + }) + .setColor('#ff0000') + .build(), + roleAddPermissionError: new Builder() + .addFields({ + name: '権限不足', + value: 'Botにロールを管理する権限(`ManageRoles`)がありません。\n管理者に問い合わせてください。' + }) + .setColor('#ff0000') + .build(), + roleAddHelp: new Builder() + .setTitle('addroleコマンド') + .setDescription('指定したユーザーに特定のロールを付与するコマンド') + .setColor('#0099ff') + .addFields({ name: '使い方', value: 'mc!addrole @ユーザー @ロール' }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + roleAddSuccess: new Builder() + .addFields({ name: 'Success', value: 'ロールを付与しました。' }) + .setColor('#0099ff') + .build(), + banHelp: new Builder() + .setTitle('banコマンド') + .setDescription('指定したメンバーをbanするコマンド') + .setColor('#0099ff') + .addFields({ name: '使い方', value: 'mc!ban @メンバー' }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + banPermissionError: new Builder() + .addFields({ + name: '権限不足', + value: 'BotにメンバーをBanする権限(`BanMembers`)がありません。\n管理者に問い合わせてください。' + }) + .setColor('#ff0000') + .build(), + banSuccess: new Builder() + .addFields({ name: 'Success', value: '指定したメンバーをbanしました。' }) + .setColor('#0099ff') + .build(), + banError: new Builder() + .addFields({ + name: 'Error', + value: + '指定したメンバーをbanできませんでした。\n(自分より順位の高いユーザー、同順位のユーザーの操作ができないDiscordの仕様です。)' + }) + .setColor('#ff0000') + .build(), + banlistError: new Builder() + .addFields({ name: 'Error', value: 'Banされたユーザーを取得できませんでした。' }) + .setColor('#ff0000') + .build(), + banlistPermissionError: new Builder() + .addFields({ + name: '権限不足', + value: 'BotにBanされたメンバーを取得する権限(`BanMembers`)がありません。\n管理者に問い合わせてください。' + }) + .setColor('#ff0000') + .build(), + bannerInfo: new Builder() + .addFields({ name: 'Info', value: '指定したユーザーのバナーが設定されていませんでした。' }) + .setColor('#0099ff') + .build(), + clearHelp: new Builder() + .setTitle('clearコマンド') + .setDescription('指定したユーザーのメッセージをまとめて削除するコマンド') + .setColor('#0099ff') + .addFields({ name: '使い方', value: 'mc!clear @ユーザー 削除したい数' }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + clearPermissionError: new Builder() + .addFields({ + name: '権限不足', + value: 'Botにメッセージを管理する権限(`ManageMessages`)がありません。\n管理者に問い合わせてください。' + }) + .setColor('#ff0000') + .build(), + clearSuccess: new Builder() + .addFields({ name: 'Success', value: '指定したユーザーのメッセージを削除しました。' }) + .setColor('#0099ff') + .build(), + clearError: new Builder() + .addFields({ name: 'Error', value: '指定したユーザーのメッセージを削除できませんでした。' }) + .setColor('#ff0000') + .build(), + invitePermissionError: new Builder() + .addFields({ + name: '権限不足', + value: 'Botに招待リンクを作成する権限(`CreateInstantInvite`)がありません。\n管理者に問い合わせてください。' + }) + .setColor('#ff0000') + .build(), + inviteError: new Builder() + .addFields({ name: 'Error', value: '招待リンクの作成に失敗しました。' }) + .setColor('#ff0000') + .build(), + kickHelp: new Builder() + .setTitle('kickコマンド') + .setDescription('特定のユーザーをキックするコマンド') + .setColor('#0099ff') + .addFields({ name: '使い方', value: 'mc!kick @ユーザー' }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + kickPermissionError: new Builder() + .addFields({ + name: '権限不足', + value: 'Botにメンバーをkickする権限(`KickMembers`)がありません。\n管理者に問い合わせてください。' + }) + .setColor('#ff0000') + .build(), + kickError: new Builder() + .addFields({ + name: 'Error', + value: + '指定したユーザーをkickできませんでした。\n(自分より順位の高いユーザー、同順位のユーザーの操作ができないDiscordの仕様です。)' + }) + .setColor('#ff0000') + .build(), + kickSuccess: new Builder() + .addFields({ name: 'Success', value: '指定したユーザーをkickしました。' }) + .setColor('#0099ff') + .build(), + mcskinHelp: new Builder() + .setTitle('mcskinコマンド') + .setDescription('指定したユーザーのマイクラスキンを取得するコマンド') + .setColor('#0099ff') + .addFields({ + name: '使い方', + value: 'mc!mcskin ユーザー名\n存在しないユーザーを指定するとスティーブのスキンが表示される場合があります。' + }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + mcstatusHelp: new Builder() + .setTitle('mcstatusコマンド') + .setDescription('指定したマイクラサーバーのステータスを取得するコマンド') + .setColor('#0099ff') + .addFields({ + name: '使い方', + value: 'mc!mcstatus サーバーip ポート(任意)\nポートを指定しない場合「25565」となります。' + }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + mcstatusError: new Builder() + .setColor('#ff0000') + .setTitle('Error') + .addFields( + { name: 'status', value: `error` }, + { name: 'online', value: 'false' }, + { name: 'サーバーのバージョン', value: '確認できませんでした。' }, + { name: '最大プレイヤー数', value: '確認できませんでした。' }, + { name: 'プレイヤー数', value: '確認できませんでした。' }, + { + name: '以下の点を確認してください。', + value: 'サーバーIP,ポート番号は間違っていませんか?\n**サーバーがオフラインの場合、情報を取得できません。**' + } + ) + .build(), + pollHelp: new Builder() + .setTitle('pollコマンド') + .setDescription('投票パネルを作成するコマンド') + .setColor('#0099ff') + .addFields({ name: '使い方', value: 'mc!poll 題名 選択肢1 選択肢2 選択肢3 ...\n選択肢は6つまで' }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + remroleHelp: new Builder() + .setTitle('remroleコマンド') + .setDescription('指定したユーザーからロールを剥奪するコマンド') + .setColor('#0099ff') + .addFields({ name: '使い方', value: 'mc!remrole @ロール @ユーザー' }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + remrolePermissionError: new Builder() + .addFields({ + name: '権限不足', + value: 'Botにロールを管理する権限(`ManageRoles`)がありません。\n管理者に問い合わせてください。' + }) + .setColor('#ff0000') + .build(), + remroleSuccess: new Builder() + .addFields({ name: 'Success', value: 'ロールを剥奪しました。' }) + .setColor('#0099ff') + .build(), + remroleError: new Builder() + .addFields({ + name: 'エラー', + value: + '指定されたロールを剥奪できませんでした。\n(自分についているものより順位の高いロール、同順位のロールを操作できないDiscordの仕様です。)' + }) + .setColor('#ff0000') + .build(), + searchHelp: new Builder() + .setTitle('searchコマンド') + .setDescription('指定したワードを検索するコマンド') + .setColor('#0099ff') + .addFields({ name: '使い方', value: 'mc!search 検索したいワード' }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + searchError: new Builder().addFields({ name: 'Error', value: '検索に失敗しました。' }).setColor('#ff0000').build(), + timeoutPermissionError: new Builder() + .addFields({ + name: '権限不足', + value: 'Botにユーザーを管理する権限(`ModerateMembers`)がありません。\n管理者に問い合わせてください。' + }) + .setColor('#0099ff') + .build(), + timeoutHelp: new Builder() + .setTitle('timeoutコマンド') + .setDescription('指定したユーザーをミュートするコマンド') + .setColor('#0099ff') + .addFields({ name: '使い方', value: 'mc!timeout @ユーザー 分数' }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + timeoutSuccess: new Builder() + .addFields({ name: 'Success', value: '指定したユーザーをミュートしました。' }) + .setColor('#0099ff') + .build(), + timeoutError: new Builder() + .addFields({ name: 'Error', value: '指定したユーザーをミュートできませんでした。' }) + .setColor('#ff0000') + .build(), + untimeoutHelp: new Builder() + .setTitle('untimeoutコマンド') + .setDescription('指定したユーザーのミュートを解除するコマンド') + .setColor('#0099ff') + .addFields({ name: '使い方', value: 'mc!untimeout @ユーザー' }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + untimeoutSuccess: new Builder() + .addFields({ name: 'Success', value: '指定したユーザーのミュートを解除しました。' }) + .setColor('#0099ff') + .build(), + untimeoutError: new Builder() + .addFields({ name: 'Error', value: '指定したユーザーのミュートを解除できませんでした。' }) + .setColor('#ff0000') + .build(), + untimeoutNo: new Builder() + .addFields({ name: 'Error', value: '指定したユーザーはミュートされていません。' }) + .setColor('#ff0000') + .build(), + defaultError: new Builder().addFields({ name: 'Error', value: 'エラーが発生しました。' }).setColor('#ff0000').build(), + saveSuccess: new Builder().addFields({ name: 'Success', value: '保存しました。' }).setColor('#0099ff').build(), + deleteSuccess: new Builder() + .addFields({ name: 'Success', value: '設定を削除しました。' }) + .setColor('#0099ff') + .build(), + joinmsgHelp: new Builder() + .setTitle('joinmsgコマンド') + .setDescription('参加時のメッセージを設定するコマンド') + .setColor('#0099ff') + .addFields({ + name: '使い方', + value: + 'mc!joinmsg 送信したいメッセージ\nコマンドを実行したチャンネルに送信されます。\n 送信メッセージに `{user}` を加えると参加ユーザーをメンションします。 ' + }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + leavemsgHelp: new Builder() + .setTitle('leavemsgコマンド') + .setDescription('退出時のメッセージを設定するコマンド') + .setColor('#0099ff') + .addFields({ + name: '使い方', + value: + 'mc!leavemsg 送信したいメッセージ\nコマンドを実行したチャンネルに送信されます。\n 送信メッセージに `{user}` を加えると退出ユーザーをメンションします。 ' + }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + responseHelp: new Builder() + .setTitle('responseコマンド') + .setDescription('キーワードに対して反応する言葉を設定するコマンド') + .setColor('#0099ff') + .addFields({ + name: '使い方', + value: 'mc!response ○○ ××\n○○には反応させたいキーワード、××には応答 を入れてください' + }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + resnowEmpty: new Builder() + .addFields({ name: 'Error', value: 'まだレスポンスが登録されていません。' }) + .setColor('#ff0000') + .build(), + resdeleteHelp: new Builder() + .setTitle('resdeleteコマンド') + .setDescription('指定したレスポンスを削除するコマンド') + .setColor('#0099ff') + .addFields({ name: '使い方', value: 'mc!resnowで表示された「○○:××」のうちの○○を使い、\nmc!resdelete ○○' }) + .setFooter({ text: 'Motcher v2.0' }) + .build(), + + PermissionError: new Builder() + .addFields({ + name: 'Error', + value: 'このコマンドを使用する権限がありません。' + }) + .setColor('#ff0000') + .build() +}; diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..61748b4 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,53 @@ +import { events } from './Events'; +import { + BaseInteraction, + Client, + GatewayIntentBits, + GuildMember, + Message, + PartialGuildMember, + PartialMessage, + Partials, + Role +} from 'discord.js'; +import { config } from 'dotenv'; + +config(); + +export const bannedServers = ['1136234915663466496']; +export const bannedUsers = ['1109315933274640417']; + +const client = new Client({ + intents: [ + GatewayIntentBits.Guilds, + GatewayIntentBits.MessageContent, + GatewayIntentBits.GuildMessages, + GatewayIntentBits.GuildMembers, + GatewayIntentBits.GuildWebhooks, + GatewayIntentBits.DirectMessages + ], + allowedMentions: { + parse: ['users'], + repliedUser: false + }, + partials: [Partials.Channel] +}); + +client + .on('ready', () => events.onReady(client)) + .on('messageCreate', async (message: Message) => events.onMessageCreate(message)) + .on('messageUpdate', async (oldMessage: Message | PartialMessage, newMessage: Message | PartialMessage) => + events.onMessageUpdate(oldMessage, newMessage) + ) + .on('messageDelete', async (message: Message | PartialMessage) => events.onMessageDelete(message)) + .on('guildMemberAdd', async (member: GuildMember) => events.onGuildMemberAdd(member)) + .on('guildMemberRemove', async (member: GuildMember | PartialGuildMember) => events.onGuildMemberRemove(member)) + .on('guildMemberUpdate', async (oldMember: GuildMember | PartialGuildMember, newMember: GuildMember) => + events.onGuildMemberUpdate(oldMember, newMember) + ) + .on('guildRoleCreate', async (role: Role) => events.onGuildRoleCreate(role)) + .on('guildRoleUpdate', async (oldRole: Role, newRole: Role) => events.onGuildRoleUpdate(oldRole, newRole)) + .on('guildRoleDelete', async (role: Role) => events.onGuildRoleDelete(role)) + .on('interactionCreate', async (interaction: BaseInteraction) => events.onInteractionCreate(interaction)) + .on('error', async (error: Error) => events.onError(client, error)) + .login(process.env.TOKEN); diff --git a/src/interactions/about.ts b/src/interactions/about.ts new file mode 100644 index 0000000..0dd8634 --- /dev/null +++ b/src/interactions/about.ts @@ -0,0 +1,7 @@ +import { embeds } from '../embeds'; +import { ChatInputCommandInteraction } from 'discord.js'; + +export async function aboutCommand(interaction: ChatInputCommandInteraction) { + interaction.reply(embeds.about); + return; +} diff --git a/src/interactions/addrole.ts b/src/interactions/addrole.ts new file mode 100644 index 0000000..c06a43d --- /dev/null +++ b/src/interactions/addrole.ts @@ -0,0 +1,22 @@ +import { embeds } from '../embeds'; +import { ChatInputCommandInteraction, GuildMember, PermissionsBitField, Role } from 'discord.js'; + +export async function addroleCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ManageRoles)) + return interaction.reply(embeds.PermissionError); + if (!interaction.guild?.members.me?.permissions.has(PermissionsBitField.Flags.ManageRoles)) + return interaction.reply(embeds.roleAddPermissionError); + const role = interaction.options.getRole('role') as Role; + const member = interaction.options.getMember('member') as GuildMember; + if (!role || !member) return interaction.reply(embeds.roleAddHelp); + member.roles + .add(role) + .then(() => { + interaction.reply(embeds.roleAddSuccess); + }) + .catch(() => { + interaction.reply(embeds.roleAddError); + }); + return; +} diff --git a/src/interactions/avatar.ts b/src/interactions/avatar.ts new file mode 100644 index 0000000..570286b --- /dev/null +++ b/src/interactions/avatar.ts @@ -0,0 +1,9 @@ +import { ChatInputCommandInteraction, EmbedBuilder } from 'discord.js'; + +export async function avatarCommand(interaction: ChatInputCommandInteraction) { + const targetUser = interaction.options.getUser('user') ?? interaction.user; + const avatarURL = targetUser.displayAvatarURL({ size: 1024, extension: 'png' }); + const embed = new EmbedBuilder().setColor('#0099FF').setTitle(`${targetUser.username}のアバター`).setImage(avatarURL); + interaction.reply({ embeds: [embed] }); + return; +} diff --git a/src/interactions/ban.ts b/src/interactions/ban.ts new file mode 100644 index 0000000..edc9b3e --- /dev/null +++ b/src/interactions/ban.ts @@ -0,0 +1,21 @@ +import { embeds } from '../embeds'; +import { ChatInputCommandInteraction, GuildMember, PermissionsBitField } from 'discord.js'; + +export async function banCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.BanMembers)) + return interaction.reply(embeds.PermissionError); + if (!interaction.guild?.members.me?.permissions.has(PermissionsBitField.Flags.BanMembers)) + return interaction.reply(embeds.banPermissionError); + const member = interaction.options.getMember('member') as GuildMember; + if (!member) return interaction.reply(embeds.banHelp); + member + .ban() + .then(() => { + interaction.reply(embeds.banSuccess); + }) + .catch(() => { + interaction.reply(embeds.banError); + }); + return; +} diff --git a/src/interactions/banlist.ts b/src/interactions/banlist.ts new file mode 100644 index 0000000..9fa6204 --- /dev/null +++ b/src/interactions/banlist.ts @@ -0,0 +1,20 @@ +import { embeds } from '../embeds'; +import { ChatInputCommandInteraction, PermissionsBitField, EmbedBuilder } from 'discord.js'; + +export async function banlistCommand(interaction: ChatInputCommandInteraction) { + if (!interaction.guild?.members.me?.permissions.has(PermissionsBitField.Flags.BanMembers)) + return interaction.reply(embeds.banlistPermissionError); + await interaction.guild.bans + .fetch() + .then((bans) => { + const embed = new EmbedBuilder() + .setTitle('Banned Users') + .setDescription(bans.map((ban) => ban.user.username).join('\n') || 'none') + .setColor('#ff0000'); + interaction.reply({ embeds: [embed] }); + }) + .catch(() => { + interaction.reply(embeds.banlistError); + }); + return; +} diff --git a/src/interactions/banner.ts b/src/interactions/banner.ts new file mode 100644 index 0000000..beb9b2b --- /dev/null +++ b/src/interactions/banner.ts @@ -0,0 +1,10 @@ +import { ChatInputCommandInteraction, EmbedBuilder } from 'discord.js'; + +export async function bannerCommand(interaction: ChatInputCommandInteraction) { + const user = interaction.options.getUser('user') || interaction.user; + const banner = user.bannerURL({ size: 1024 }); + if (!banner) return interaction.reply({ content: 'このユーザーにはバナーがありません。', ephemeral: true }); + const embed = new EmbedBuilder().setTitle(`${user.username}のバナー`).setImage(banner).setColor('#0099ff'); + interaction.reply({ embeds: [embed] }); + return; +} diff --git a/src/interactions/clear.ts b/src/interactions/clear.ts new file mode 100644 index 0000000..ed79fd2 --- /dev/null +++ b/src/interactions/clear.ts @@ -0,0 +1,33 @@ +import { embeds } from '../embeds'; +import { + ChannelType, + ChatInputCommandInteraction, + GuildMember, + PermissionsBitField, + TextBasedChannel +} from 'discord.js'; + +export async function clearCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ManageMessages)) + return interaction.reply(embeds.PermissionError); + if (!interaction.guild?.members.me?.permissions.has(PermissionsBitField.Flags.ManageMessages)) + return interaction.reply(embeds.clearPermissionError); + const member = interaction.options.getMember('member') as GuildMember; + const amount = interaction.options.getInteger('amount') as number; + if (amount < 1 || amount > 100) { + return interaction.reply({ content: '1から100までの数字を入力してください。', ephemeral: true }); + } + const channel = interaction.channel as TextBasedChannel; + const messages = await channel.messages.fetch({ limit: 100 }); + const userMessages = Array.from(messages.filter((m) => m.author.id === member.id).values()).slice(0, amount); + if (channel.type !== ChannelType.GuildText) return; + channel + .bulkDelete(userMessages) + .then(() => { + interaction.reply(embeds.clearSuccess); + }) + .catch(() => { + interaction.reply(embeds.clearError); + }); +} diff --git a/src/interactions/closeticket.ts b/src/interactions/closeticket.ts new file mode 100644 index 0000000..8338d2d --- /dev/null +++ b/src/interactions/closeticket.ts @@ -0,0 +1,8 @@ +import { ButtonInteraction, ButtonBuilder, ButtonStyle, ActionRowBuilder } from 'discord.js'; + +export async function closeticketCommand(interaction: ButtonInteraction) { + const Yes = new ButtonBuilder().setCustomId('yes').setLabel('Yes').setStyle(ButtonStyle.Danger); + const No = new ButtonBuilder().setCustomId('no').setLabel('No').setStyle(ButtonStyle.Secondary); + const row = new ActionRowBuilder().addComponents(Yes, No); + await interaction.reply({ content: 'このチケットを閉じますか?', components: [row] }); +} diff --git a/src/interactions/createticket.ts b/src/interactions/createticket.ts new file mode 100644 index 0000000..3b1dae8 --- /dev/null +++ b/src/interactions/createticket.ts @@ -0,0 +1,64 @@ +import { + ButtonInteraction, + PermissionsBitField, + Guild, + ChannelType, + ActionRowBuilder, + ButtonBuilder, + ButtonStyle, + TextChannel +} from 'discord.js'; + +export async function createticketCommand(interaction: ButtonInteraction) { + if (!interaction.guild?.members.me?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return interaction.reply({ + content: 'チャンネルを作成する権限がありません。サーバーオーナーに問い合わせてください。', + ephemeral: true + }); + const guild = interaction.guild as Guild; + const existingChannels = guild.channels.cache.filter( + (c) => + c.type === ChannelType.GuildText && + c.name === `ticket-${interaction.user.username.replace('#', '').toLowerCase()}` + ); + if (existingChannels.size > 0) { + return interaction.reply({ + content: 'すでにチケットを作成しています。\nもう一度作成したい場合は既存のチケットを一度閉じてください。', + ephemeral: true + }); + } + try { + const channel = interaction.channel as TextChannel; + const createdChannel = await guild.channels.create({ + name: `Ticket-${interaction.user.username}`, + parent: channel.parent, + permissionOverwrites: [ + { + id: interaction.user.id, + allow: [ + PermissionsBitField.Flags.ViewChannel, + PermissionsBitField.Flags.SendMessages, + PermissionsBitField.Flags.AttachFiles, + PermissionsBitField.Flags.ReadMessageHistory + ] + }, + { + id: interaction.guild.roles.everyone, + deny: [PermissionsBitField.Flags.ViewChannel] + } + ] + }); + const Closeticket = new ButtonBuilder() + .setCustomId('closeticket') + .setLabel('Close Ticket') + .setStyle(ButtonStyle.Danger); + const row = new ActionRowBuilder().addComponents(Closeticket); + await createdChannel.send({ + content: `${interaction.user}さん、チケットへようこそ!\nこのチケットを閉じるときは下のボタンを押してください。`, + components: [row] + }); + await interaction.reply({ content: `新しいチケットを作成しました。${createdChannel}`, ephemeral: true }); + } catch (error) { + console.error(error); + } +} diff --git a/src/interactions/deletejoin.ts b/src/interactions/deletejoin.ts new file mode 100644 index 0000000..7c663c1 --- /dev/null +++ b/src/interactions/deletejoin.ts @@ -0,0 +1,23 @@ +import { ServerJoinData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, ChatInputCommandInteraction, PermissionsBitField, GuildMember } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function deletejoinCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.Administrator)) + return interaction.reply(embeds.PermissionError); + const guild = interaction.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/join_messages.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + delete data[serverId]; + writeFile('./database/join_messages.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + console.error(err); + } else { + interaction.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/interactions/deleteleave.ts b/src/interactions/deleteleave.ts new file mode 100644 index 0000000..ab5bef6 --- /dev/null +++ b/src/interactions/deleteleave.ts @@ -0,0 +1,23 @@ +import { ServerLeaveData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, ChatInputCommandInteraction, PermissionsBitField, GuildMember } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function deleteleaveCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.Administrator)) + return interaction.reply(embeds.PermissionError); + const guild = interaction.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/leave_messages.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + delete data[serverId]; + writeFile('./database/leave_messages.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + console.error(err); + } else { + interaction.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/interactions/help.ts b/src/interactions/help.ts new file mode 100644 index 0000000..9d71776 --- /dev/null +++ b/src/interactions/help.ts @@ -0,0 +1,7 @@ +import { embeds } from '../embeds'; +import { ChatInputCommandInteraction } from 'discord.js'; + +export async function helpCommand(interaction: ChatInputCommandInteraction) { + interaction.reply(embeds.help); + return; +} diff --git a/src/interactions/index.ts b/src/interactions/index.ts new file mode 100644 index 0000000..725140c --- /dev/null +++ b/src/interactions/index.ts @@ -0,0 +1,81 @@ +import { aboutCommand } from './about'; +import { addroleCommand } from './addrole'; +import { avatarCommand } from './avatar'; +import { banCommand } from './ban'; +import { banlistCommand } from './banlist'; +import { bannerCommand } from './banner'; +import { clearCommand } from './clear'; +import { closeticketCommand } from './closeticket'; +import { createticketCommand } from './createticket'; +import { deletejoinCommand } from './deletejoin'; +import { deleteleaveCommand } from './deleteleave'; +import { helpCommand } from './help'; +import { inlistCommand } from './inlist'; +import { inviteCommand } from './invite'; +import { joinmsgCommand } from './joinmsg'; +import { kickCommand } from './kick'; +import { leavemsgCommand } from './leavemsg'; +import { mcskinCommand } from './mcskin'; +import { mcstatusCommand } from './mcstatus'; +import { memberlogCommand } from './memberlog'; +import { memberlogstopCommand } from './memberlogstop'; +import { msglogCommand } from './msglog'; +import { msglogstopCommand } from './msglogstop'; +import { noCommand } from './no'; +import { pingCommand } from './ping'; +import { remroleCommand } from './remrole'; +import { resdeleteCommand } from './resdelete'; +import { resnowCommand } from './resnow'; +import { responseCommand } from './response'; +import { restartCommand } from './restart'; +import { rolelogCommand } from './rolelog'; +import { rolelogstopCommand } from './rolelogstop'; +import { searchCommand } from './search'; +import { serverCommand } from './server'; +import { statusCommand } from './status'; +import { timeoutCommand } from './timeout'; +import { untimeoutCommand } from './untimeout'; +import { userCommand } from './user'; +import { yesCommand } from './yes'; + +export const interactions = { + help: helpCommand, + about: aboutCommand, + addrole: addroleCommand, + avatar: avatarCommand, + ban: banCommand, + banlist: banlistCommand, + banner: bannerCommand, + clear: clearCommand, + deletejoin: deletejoinCommand, + deleteleave: deleteleaveCommand, + inlist: inlistCommand, + invite: inviteCommand, + joinmsg: joinmsgCommand, + kick: kickCommand, + leavemsg: leavemsgCommand, + mcskin: mcskinCommand, + mcstatus: mcstatusCommand, + memberlog: memberlogCommand, + memberlogstop: memberlogstopCommand, + msglog: msglogCommand, + msglogstop: msglogstopCommand, + ping: pingCommand, + remrole: remroleCommand, + resdelete: resdeleteCommand, + resnow: resnowCommand, + response: responseCommand, + restart: restartCommand, + rolelog: rolelogCommand, + rolelogstop: rolelogstopCommand, + search: searchCommand, + server: serverCommand, + status: statusCommand, + timeout: timeoutCommand, + untimeout: untimeoutCommand, + user: userCommand, + createticket: createticketCommand, + closeticket: closeticketCommand, + yes: yesCommand, + no: noCommand +}; diff --git a/src/interactions/inlist.ts b/src/interactions/inlist.ts new file mode 100644 index 0000000..a74c0a7 --- /dev/null +++ b/src/interactions/inlist.ts @@ -0,0 +1,21 @@ +import { ChatInputCommandInteraction } from 'discord.js'; +import { writeFileSync } from 'fs'; + +export async function inlistCommand(interaction: ChatInputCommandInteraction) { + if (interaction.user.id !== '895050958441160734') + return interaction.reply({ content: 'このコマンドは開発者のみ使用できます。', ephemeral: true }); + const guildList = [] as string[]; + interaction.client.guilds.cache.forEach((guild) => { + guildList.push(`${guild.name} : ${guild.id}`); + }); + const fileName = 'guild-list.txt'; + writeFileSync(fileName, guildList.join('\n')); + interaction.reply({ + files: [ + { + attachment: fileName, + name: fileName + } + ] + }); +} diff --git a/src/interactions/invite.ts b/src/interactions/invite.ts new file mode 100644 index 0000000..85734d3 --- /dev/null +++ b/src/interactions/invite.ts @@ -0,0 +1,26 @@ +import { embeds } from '../embeds'; +import { + ChannelType, + ChatInputCommandInteraction, + GuildMember, + PermissionsBitField, + TextBasedChannel +} from 'discord.js'; + +export async function inviteCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.CreateInstantInvite)) + return interaction.reply(embeds.PermissionError); + if (!interaction.guild?.members.me?.permissions.has(PermissionsBitField.Flags.CreateInstantInvite)) + return interaction.reply(embeds.invitePermissionError); + const channel = interaction.channel as TextBasedChannel; + if (channel.type !== ChannelType.GuildText) return; + channel + .createInvite() + .then((invite) => { + interaction.reply(invite.url); + }) + .catch(() => { + interaction.reply(embeds.inviteError); + }); +} diff --git a/src/interactions/joinmsg.ts b/src/interactions/joinmsg.ts new file mode 100644 index 0000000..e3ea5f4 --- /dev/null +++ b/src/interactions/joinmsg.ts @@ -0,0 +1,28 @@ +import { ServerJoinData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, ChatInputCommandInteraction, PermissionsBitField, GuildMember, TextBasedChannel } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function joinmsgCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.Administrator)) + return interaction.reply(embeds.PermissionError); + const detail = interaction.options.getString('detail'); + const channel = interaction.channel as TextBasedChannel; + const guild = interaction.guild as Guild; + const serverId = guild.id; + if (!detail) return interaction.reply(embeds.joinmsgHelp); + const rawData = readFileSync('./database/join_messages.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + data[serverId] = { + joinMessage: detail, + channelId: channel.id + }; + writeFile('./', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + } else { + interaction.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/interactions/kick.ts b/src/interactions/kick.ts new file mode 100644 index 0000000..58c8096 --- /dev/null +++ b/src/interactions/kick.ts @@ -0,0 +1,20 @@ +import { embeds } from '../embeds'; +import { PermissionsBitField, ChatInputCommandInteraction, GuildMember } from 'discord.js'; + +export async function kickCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.KickMembers)) + return interaction.reply('コマンドを使用する権限がありません。'); + if (!interaction.guild?.members.me?.permissions.has(PermissionsBitField.Flags.KickMembers)) + return interaction.reply(embeds.kickPermissionError); + const member = interaction.options.getMember('member') as GuildMember; + if (!member) return interaction.reply(embeds.kickHelp); + member + .kick() + .then(() => { + interaction.reply(embeds.kickSuccess); + }) + .catch(() => { + interaction.reply(embeds.kickError); + }); +} diff --git a/src/interactions/leavemsg.ts b/src/interactions/leavemsg.ts new file mode 100644 index 0000000..6473c21 --- /dev/null +++ b/src/interactions/leavemsg.ts @@ -0,0 +1,28 @@ +import { ServerLeaveData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, ChatInputCommandInteraction, PermissionsBitField, GuildMember, TextBasedChannel } from 'discord.js'; +import { readFileSync, writeFile } from 'fs'; + +export async function leavemsgCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.Administrator)) + return interaction.reply(embeds.PermissionError); + const detail = interaction.options.getString('detail') as string; + const channel = interaction.channel as TextBasedChannel; + const guild = interaction.guild as Guild; + const serverId = guild.id; + if (!detail) interaction.reply(embeds.leavemsgHelp); + const rawData = readFileSync('./database/leave_messages.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + data[serverId] = { + leaveMessage: detail, + channelId: channel.id + }; + writeFile('./database/leave_messages.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + } else { + interaction.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/interactions/mcskin.ts b/src/interactions/mcskin.ts new file mode 100644 index 0000000..8c2f03f --- /dev/null +++ b/src/interactions/mcskin.ts @@ -0,0 +1,13 @@ +import { embeds } from '../embeds'; +import { ChatInputCommandInteraction, EmbedBuilder } from 'discord.js'; + +export async function mcskinCommand(interaction: ChatInputCommandInteraction) { + const name = interaction.options.getString('name'); + if (!name) return interaction.reply(embeds.mcskinHelp); + const embed = new EmbedBuilder() + .setTitle(`${name}のスキン`) + .setColor('#0099ff') + .setImage(`https://minotar.net/armor/body/${name}/100.png`) + .setThumbnail(`https://minotar.net/skin/${name}`); + interaction.reply({ embeds: [embed] }); +} diff --git a/src/interactions/mcstatus.ts b/src/interactions/mcstatus.ts new file mode 100644 index 0000000..04a54df --- /dev/null +++ b/src/interactions/mcstatus.ts @@ -0,0 +1,34 @@ +import { embeds } from '../embeds'; +import axios from 'axios'; +import { ChatInputCommandInteraction, EmbedBuilder } from 'discord.js'; + +export async function mcstatusCommand(interaction: ChatInputCommandInteraction) { + const mcServerIp = interaction.options.getString('address'); + const mcServerPort = interaction.options.getString('port') ?? '25565'; + const url = `https://mcapi.us/server/status?ip=${mcServerIp}&port=${mcServerPort}`; + if (!mcServerIp) return interaction.reply(embeds.mcstatusHelp); + axios + .get(url) + .then((response) => { + const data = response.data; + const status = data.status as string; + const online = (data.online as number).toString(); + const servername = data.server.name as string; + const maxplayer = (data.players.max as number).toString(); + const playerCount = (data.players.now as number).toString(); + const embed = new EmbedBuilder() + .setColor('#0099ff') + .setTitle(`${mcServerIp}のステータス`) + .addFields( + { name: 'status', value: status }, + { name: 'online', value: online }, + { name: 'サーバーのバージョン', value: servername }, + { name: '最大プレイヤー数', value: maxplayer }, + { name: 'プレイヤー数', value: playerCount } + ); + interaction.reply({ embeds: [embed] }); + }) + .catch(() => { + interaction.reply(embeds.mcstatusError); + }); +} diff --git a/src/interactions/memberlog.ts b/src/interactions/memberlog.ts new file mode 100644 index 0000000..9cf4e2a --- /dev/null +++ b/src/interactions/memberlog.ts @@ -0,0 +1,26 @@ +import { ServerMemberData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, ChatInputCommandInteraction, PermissionsBitField, GuildMember, TextBasedChannel } from 'discord.js'; +import { readFileSync, writeFile } from 'fs'; + +export async function memberlogCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return interaction.reply(embeds.PermissionError); + const channel = interaction.channel as TextBasedChannel; + const guild = interaction.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/memberlogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + data[serverId] = { + channelId: channel.id + }; + writeFile('./database/memberlogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + console.error(err); + } else { + interaction.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/interactions/memberlogstop.ts b/src/interactions/memberlogstop.ts new file mode 100644 index 0000000..329d2dd --- /dev/null +++ b/src/interactions/memberlogstop.ts @@ -0,0 +1,23 @@ +import { ServerMemberData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, ChatInputCommandInteraction, PermissionsBitField, GuildMember } from 'discord.js'; +import { readFileSync, writeFile } from 'fs'; + +export async function memberlogstopCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return interaction.reply(embeds.PermissionError); + const guild = interaction.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/memberlogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + delete data[serverId]; + writeFile('./database/memberlogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + console.error(err); + } else { + interaction.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/interactions/msglog.ts b/src/interactions/msglog.ts new file mode 100644 index 0000000..d82dcb4 --- /dev/null +++ b/src/interactions/msglog.ts @@ -0,0 +1,25 @@ +import { ServerMsgData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, ChatInputCommandInteraction, PermissionsBitField, GuildMember, TextBasedChannel } from 'discord.js'; +import { readFileSync, writeFile } from 'fs'; + +export async function msglogCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return interaction.reply(embeds.PermissionError); + const channel = interaction.channel as TextBasedChannel; + const guild = interaction.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/msglogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + data[serverId] = { + channelId: channel.id + }; + writeFile('./database/msglogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + } else { + interaction.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/interactions/msglogstop.ts b/src/interactions/msglogstop.ts new file mode 100644 index 0000000..5b20616 --- /dev/null +++ b/src/interactions/msglogstop.ts @@ -0,0 +1,23 @@ +import { ServerMsgData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, ChatInputCommandInteraction, PermissionsBitField, GuildMember } from 'discord.js'; +import { readFileSync, writeFile } from 'fs'; + +export async function msglogstopCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return interaction.reply(embeds.PermissionError); + const guild = interaction.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/msglogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + delete data[serverId]; + writeFile('./database/msglogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + console.error(err); + } else { + interaction.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/interactions/no.ts b/src/interactions/no.ts new file mode 100644 index 0000000..28e1036 --- /dev/null +++ b/src/interactions/no.ts @@ -0,0 +1,5 @@ +import { ButtonInteraction } from 'discord.js'; + +export async function noCommand(interaction: ButtonInteraction) { + interaction.message.delete(); +} diff --git a/src/interactions/ping.ts b/src/interactions/ping.ts new file mode 100644 index 0000000..b264cad --- /dev/null +++ b/src/interactions/ping.ts @@ -0,0 +1,9 @@ +import { ChatInputCommandInteraction, EmbedBuilder } from 'discord.js'; + +export async function pingCommand(interaction: ChatInputCommandInteraction) { + const embed = new EmbedBuilder() + .setColor('#0099ff') + .setTitle('Pong!:ping_pong:') + .setDescription(`${interaction.client.ws.ping}ms`); + interaction.reply({ embeds: [embed] }); +} diff --git a/src/interactions/remrole.ts b/src/interactions/remrole.ts new file mode 100644 index 0000000..ee3fb16 --- /dev/null +++ b/src/interactions/remrole.ts @@ -0,0 +1,21 @@ +import { embeds } from '../embeds'; +import { ChatInputCommandInteraction, GuildMember, PermissionsBitField, Role } from 'discord.js'; + +export async function remroleCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ManageRoles)) + return interaction.reply(embeds.PermissionError); + if (!interaction.guild?.members.me?.permissions.has(PermissionsBitField.Flags.ManageRoles)) + return interaction.reply(embeds.remrolePermissionError); + const role = interaction.options.getRole('role') as Role; + const member = interaction.options.getMember('member') as GuildMember; + if (!role || !member) return interaction.reply(embeds.remroleHelp); + member.roles + .remove(role) + .then(() => { + interaction.reply(embeds.remroleSuccess); + }) + .catch(() => { + interaction.reply(embeds.remroleError); + }); +} diff --git a/src/interactions/resdelete.ts b/src/interactions/resdelete.ts new file mode 100644 index 0000000..7b3e2ad --- /dev/null +++ b/src/interactions/resdelete.ts @@ -0,0 +1,29 @@ +import { ServerResponseData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { PermissionsBitField, ChatInputCommandInteraction, Guild, GuildMember } from 'discord.js'; +import { writeFile } from 'fs'; +import { readFileSync } from 'fs'; + +export async function resdeleteCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ManageMessages)) + return interaction.reply('貴方にはこのコマンドを使用する権限がありません。'); + const keyword = interaction.options.getString('keyword') as string; + const guild = interaction.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/responses.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + const serverData = data[serverId]; + if (!serverData || !serverData[keyword]) + return interaction.reply(`キーワード 「${keyword}」 のレスポンスは登録されていません。`); + delete serverData[keyword]; + + writeFile('./database/responses.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + console.error(err); + } else { + interaction.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/interactions/resnow.ts b/src/interactions/resnow.ts new file mode 100644 index 0000000..9089ea6 --- /dev/null +++ b/src/interactions/resnow.ts @@ -0,0 +1,21 @@ +import { ServerResponseData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, ChatInputCommandInteraction } from 'discord.js'; +import { readFileSync } from 'fs'; + +export async function resnowCommand(interaction: ChatInputCommandInteraction) { + const guild = interaction.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/responses.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + const serverData = data[serverId]; + if (!serverData || Object.keys(serverData).length === 0) { + interaction.reply(embeds.resnowEmpty); + return; + } + let responseList = '登録されているレスポンス一覧\n'; + for (const keyword in serverData) { + responseList += `${keyword}: ${serverData[keyword]}\n`; + } + interaction.reply(responseList); +} diff --git a/src/interactions/response.ts b/src/interactions/response.ts new file mode 100644 index 0000000..4abbac7 --- /dev/null +++ b/src/interactions/response.ts @@ -0,0 +1,30 @@ +import { ServerResponseData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { Guild, ChatInputCommandInteraction, PermissionsBitField, GuildMember } from 'discord.js'; +import { readFileSync, writeFile } from 'fs'; + +export async function responseCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ManageMessages)) + return interaction.reply(embeds.PermissionError); + const keyword = interaction.options.getString('keyword') as string; + const response = interaction.options.getString('response') as string; + const guild = interaction.guild as Guild; + const serverId = guild.id; + if (!keyword || !response) return interaction.reply(embeds.responseHelp); + const rawData = readFileSync('./database/responses.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + let serverData = data[serverId]; + if (!serverData) { + serverData = {}; + data[serverId] = serverData; + } + serverData[keyword] = response; + writeFile('./database/responses.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + } else { + interaction.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/interactions/restart.ts b/src/interactions/restart.ts new file mode 100644 index 0000000..4d88bb1 --- /dev/null +++ b/src/interactions/restart.ts @@ -0,0 +1,8 @@ +import { ChatInputCommandInteraction } from 'discord.js'; + +export async function restartCommand(interaction: ChatInputCommandInteraction) { + if (interaction.user.id !== '895050958441160734') + return interaction.reply({ content: 'このコマンドは開発者のみが使用できます。', ephemeral: true }); + await interaction.client.destroy(); + process.exit(); +} diff --git a/src/interactions/rolelog.ts b/src/interactions/rolelog.ts new file mode 100644 index 0000000..53879c3 --- /dev/null +++ b/src/interactions/rolelog.ts @@ -0,0 +1,26 @@ +import { ServerRoleData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { ChatInputCommandInteraction, PermissionsBitField, Guild, GuildMember, TextBasedChannel } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function rolelogCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return interaction.reply(embeds.PermissionError); + const channel = interaction.channel as TextBasedChannel; + const guild = interaction.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('./database/rolelogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + data[serverId] = { + channelId: channel.id + }; + writeFile('./database/rolelogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + console.error(err); + } else { + interaction.reply(embeds.saveSuccess); + } + }); +} diff --git a/src/interactions/rolelogstop.ts b/src/interactions/rolelogstop.ts new file mode 100644 index 0000000..76a251f --- /dev/null +++ b/src/interactions/rolelogstop.ts @@ -0,0 +1,23 @@ +import { ServerRoleData } from '../Utils/ServerData'; +import { embeds } from '../embeds'; +import { ChatInputCommandInteraction, PermissionsBitField, Guild, GuildMember } from 'discord.js'; +import { writeFile, readFileSync } from 'fs'; + +export async function rolelogstopCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ManageChannels)) + return interaction.reply(embeds.PermissionError); + const guild = interaction.guild as Guild; + const serverId = guild.id; + const rawData = readFileSync('/database/rolelogs.json', 'utf-8'); + const data: Record = JSON.parse(rawData); + delete data[serverId]; + writeFile('../database/rolelogs.json', JSON.stringify(data, null, 2), (err) => { + if (err) { + interaction.reply(embeds.defaultError); + console.error(err); + } else { + interaction.reply(embeds.deleteSuccess); + } + }); +} diff --git a/src/interactions/search.ts b/src/interactions/search.ts new file mode 100644 index 0000000..4465086 --- /dev/null +++ b/src/interactions/search.ts @@ -0,0 +1,47 @@ +import { embeds } from '../embeds'; +import axios from 'axios'; +import { ChatInputCommandInteraction, EmbedBuilder } from 'discord.js'; +import { config } from 'dotenv'; + +config(); + +export async function searchCommand(interaction: ChatInputCommandInteraction) { + const query = interaction.options.getString('query') as string; + axios + .get('https://www.googleapis.com/customsearch/v1', { + params: { + key: process.env.GOOGLE_KEY, + cx: process.env.GOOGLE_CX, + q: query + } + }) + .then((response) => { + const data = response.data; + if (!data.items) { + interaction.reply({ content: '検索結果が見つかりませんでした。', ephemeral: true }); + return; + } + const results = data.items.slice(0, 5); + const embed = results.reduce( + ( + embedBuilder: { addFields: (arg0: { name: string; value: string }) => EmbedBuilder }, + result: { title: string; snippet: string; link: string } + ) => { + return embedBuilder.addFields({ + name: `${result.title}`, + value: `[${result.snippet}](${result.link})` + }); + }, + new EmbedBuilder().setColor('#0099FF') + ); + + interaction.reply({ + content: `「${query}」の検索結果`, + embeds: [embed] + }); + }) + .catch((error) => { + console.error(error); + interaction.reply(embeds.searchError); + }); +} diff --git a/src/interactions/server.ts b/src/interactions/server.ts new file mode 100644 index 0000000..2e1c3a8 --- /dev/null +++ b/src/interactions/server.ts @@ -0,0 +1,25 @@ +import { ChatInputCommandInteraction, EmbedBuilder, ChannelType, Guild } from 'discord.js'; + +export async function serverCommand(interaction: ChatInputCommandInteraction) { + const guild = (await interaction.guild?.fetch()) as Guild; + const owner = await interaction.guild?.fetchOwner(); + const createdDate = new Date(guild.createdAt).toLocaleString('ja-JP', { timeZone: 'Asia/Tokyo' }); + const embed = new EmbedBuilder() + .setColor('#0099ff') + .setTitle(guild.name) + .addFields( + { name: '基本情報', value: `名前: ${guild.name}(${guild.id})\n作成日: ${createdDate}\nオーナー: ${owner}` }, + { + name: '統計', + value: `メンバー数: ${guild.memberCount}\nテキストチャンネル数: ${ + guild.channels.cache.filter((c) => c.type === ChannelType.GuildText).size + }\nボイスチャンネル数: ${ + guild.channels.cache.filter((c) => c.type === ChannelType.GuildVoice).size + }\nカテゴリー数: ${guild.channels.cache.filter((c) => c.type === ChannelType.GuildCategory).size}\n絵文字数: ${ + guild.emojis.cache.size + }` + } + ) + .setThumbnail(guild.iconURL()); + interaction.reply({ embeds: [embed] }); +} diff --git a/src/interactions/status.ts b/src/interactions/status.ts new file mode 100644 index 0000000..5304b5c --- /dev/null +++ b/src/interactions/status.ts @@ -0,0 +1,30 @@ +import { ChatInputCommandInteraction, EmbedBuilder } from 'discord.js'; +import osu from 'node-os-utils'; +import os from 'os'; + +export async function statusCommand(interaction: ChatInputCommandInteraction) { + const guildCount = interaction.client.guilds.cache.size; + const userCount = interaction.client.guilds.cache.map((guild) => guild.memberCount).reduce((p, c) => p + c); + const ping = interaction.client.ws.ping; + const totalMem = os.totalmem(); + const freeMem = os.freemem(); + const usedMem = totalMem - freeMem; + const usedMemPercentage = Math.round((usedMem / totalMem) * 10000) / 100; + const cpu = osu.cpu; + const cpuUsagePercentage = parseFloat((await cpu.usage()).toFixed(2)); + const barLength = 20; + const usedLength = Math.max(1, Math.round(barLength * (cpuUsagePercentage / 100))); + const cpuBar = '```[' + '='.repeat(usedLength) + ' '.repeat(barLength - usedLength) + ']```'; + const memBarLength = 20; + const memUsedLength = Math.round(memBarLength * (usedMemPercentage / 100)); + const memBar = '```[' + '='.repeat(memUsedLength) + ' '.repeat(memBarLength - memUsedLength) + ']```'; + const statusEmbed = new EmbedBuilder() + .setTitle('Botのステータス') + .setColor('#0099ff') + .addFields( + { name: '現在のステータス', value: `サーバー数: ${guildCount}\nユーザー数: ${userCount}\nPing: ${ping}ms` }, + { name: 'CPU使用率', value: `${cpuUsagePercentage}%\n${cpuBar}` }, + { name: `メモリ使用率`, value: `${usedMemPercentage}%\n${memBar}` } + ); + interaction.reply({ embeds: [statusEmbed] }); +} diff --git a/src/interactions/timeout.ts b/src/interactions/timeout.ts new file mode 100644 index 0000000..8d34fc4 --- /dev/null +++ b/src/interactions/timeout.ts @@ -0,0 +1,21 @@ +import { embeds } from '../embeds'; +import { ChatInputCommandInteraction, GuildMember, PermissionsBitField } from 'discord.js'; + +export async function timeoutCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ModerateMembers)) + return interaction.reply(embeds.PermissionError); + if (!interaction.guild?.members.me?.permissions.has(PermissionsBitField.Flags.ModerateMembers)) + return interaction.reply(embeds.timeoutPermissionError); + const member = interaction.options.getMember('member') as GuildMember; + const time = interaction.options.getInteger('time') as number; + if (time <= 0) return interaction.reply({ content: '0分以下は指定できません。', ephemeral: true }); + member + .timeout(time * 60000) + .then(() => { + interaction.reply(embeds.timeoutSuccess); + }) + .catch(() => { + interaction.reply(embeds.timeoutError); + }); +} diff --git a/src/interactions/untimeout.ts b/src/interactions/untimeout.ts new file mode 100644 index 0000000..070eb6e --- /dev/null +++ b/src/interactions/untimeout.ts @@ -0,0 +1,24 @@ +import { embeds } from '../embeds'; +import { PermissionsBitField, ChatInputCommandInteraction, GuildMember } from 'discord.js'; + +export async function untimeoutCommand(interaction: ChatInputCommandInteraction) { + if (!(interaction.member instanceof GuildMember)) return; + if (!interaction.member?.permissions.has(PermissionsBitField.Flags.ModerateMembers)) + return interaction.reply('このコマンドを使用する権限がありません'); + if (!interaction.guild?.members.me?.permissions.has(PermissionsBitField.Flags.ModerateMembers)) + return interaction.reply(embeds.timeoutPermissionError); + const member = interaction.options.getMember('member') as GuildMember; + if (!member) return interaction.reply(embeds.untimeoutHelp); + if (member.communicationDisabledUntil !== null) { + member + .timeout(null) + .then(() => { + interaction.reply(embeds.untimeoutSuccess); + }) + .catch(() => { + interaction.reply(embeds.untimeoutError); + }); + } else { + interaction.reply(embeds.untimeoutNo); + } +} diff --git a/src/interactions/user.ts b/src/interactions/user.ts new file mode 100644 index 0000000..6d6106e --- /dev/null +++ b/src/interactions/user.ts @@ -0,0 +1,23 @@ +import { ChatInputCommandInteraction, EmbedBuilder, GuildMember } from 'discord.js'; + +export async function userCommand(interaction: ChatInputCommandInteraction) { + const member = + (interaction.options.getMember('member') as GuildMember | undefined) ?? (interaction.member as GuildMember); + const createdDate = new Date(member.user.createdAt).toLocaleString('ja-JP', { timeZone: 'Asia/Tokyo' }); + const nickname = member.nickname ?? 'なし'; + if (!member.joinedAt) return; + const joinedDate = new Date(member.joinedAt.toLocaleString('ja-JP', { timeZone: 'Asia/Tokyo' })); + const userEmbed = new EmbedBuilder() + .setColor('#0099ff') + .setTitle(member.user.username) + .addFields( + { name: 'ユーザー名', value: member.user.username }, + { name: 'ニックネーム', value: nickname }, + { name: 'ユーザーID', value: member.id }, + { name: 'アカウント作成日', value: createdDate.toString() }, + { name: 'サーバー参加日', value: joinedDate.toString() } + ) + .setThumbnail(member.user.displayAvatarURL()) + .setTimestamp(); + interaction.reply({ embeds: [userEmbed] }); +} diff --git a/src/interactions/yes.ts b/src/interactions/yes.ts new file mode 100644 index 0000000..2b92f0b --- /dev/null +++ b/src/interactions/yes.ts @@ -0,0 +1,13 @@ +import { ButtonInteraction, TextBasedChannel } from 'discord.js'; + +export async function yesCommand(interaction: ButtonInteraction) { + await interaction.reply('5秒後にこのチケットを閉じます...'); + try { + setTimeout(() => { + const channel = interaction.channel as TextBasedChannel; + channel.delete(); + }, 5000); + } catch (error) { + console.error(error); + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..659a163 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,109 @@ +{ + "compilerOptions": { + /* Visit https://aka.ms/tsconfig to read more about this file */ + + /* Projects */ + // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ + // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ + // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ + // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ + // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ + // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ + + /* Language and Environment */ + "target": "ES2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, + // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ + // "jsx": "preserve", /* Specify what JSX code is generated. */ + // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ + // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ + // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ + // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ + // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ + // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ + // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ + // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ + // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ + + /* Modules */ + "module": "commonjs" /* Specify what module code is generated. */, + // "rootDir": "./", /* Specify the root folder within your source files. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ + // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ + // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ + // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ + // "types": [], /* Specify type package names to be included without being referenced in a source file. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ + // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ + // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ + // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ + // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ + "resolveJsonModule": true /* Enable importing .json files. */, + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ + // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ + + /* JavaScript Support */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ + // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ + + /* Emit */ + // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ + // "declarationMap": true, /* Create sourcemaps for d.ts files. */ + // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ + // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ + // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ + // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ + "outDir": "./build" /* Specify an output folder for all emitted files. */, + // "removeComments": true, /* Disable emitting comments. */ + // "noEmit": true, /* Disable emitting files from a compilation. */ + // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ + // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */ + // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ + // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ + // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ + // "newLine": "crlf", /* Set the newline character for emitting files. */ + // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ + // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ + // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ + // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ + // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ + // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ + + /* Interop Constraints */ + // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ + // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ + // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ + "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, + // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ + "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, + + /* Type Checking */ + "strict": true /* Enable all strict type-checking options. */, + // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ + // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ + // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ + // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ + // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ + // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ + // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ + // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ + // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ + // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ + // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ + // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ + // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ + // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ + // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ + // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ + // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ + + /* Completeness */ + // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */ + } +}