diff options
-rwxr-xr-x | .pnp.cjs | 304 | ||||
-rw-r--r-- | src/commands/utilities/price.ts | 46 | ||||
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClient.ts | 26 | ||||
-rw-r--r-- | src/listeners/other/uncaughtException.ts | 23 | ||||
-rw-r--r-- | yarn.lock | 126 |
5 files changed, 268 insertions, 257 deletions
@@ -43,17 +43,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/node", "npm:14.17.5"], ["@types/tinycolor2", "npm:1.4.3"], ["@types/uuid", "npm:8.3.1"], - ["@typescript-eslint/eslint-plugin", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.2"], - ["@typescript-eslint/parser", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.2"], + ["@typescript-eslint/eslint-plugin", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.3"], + ["@typescript-eslint/parser", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.3"], ["body-parser", "npm:1.19.0"], ["chalk", "npm:4.1.1"], ["common-tags", "npm:1.8.0"], - ["discord-akairo", "https://github.com/NotEnoughUpdates/discord-akairo.git#commit=65d760faed662e816ced3ba8ae7520e513e37ee2"], + ["discord-akairo", "https://github.com/NotEnoughUpdates/discord-akairo.git#commit=7164ae3af00266b0ac357e3e65ef5d4101308c40"], ["discord-api-types", "npm:0.19.0-next.f393ba520d7d6d2aacaca7b3ca5d355fab614f6e"], - ["discord.js", "https://github.com/NotEnoughUpdates/discord.js.git#commit=20c84839fa43aad6c47ff6ffb11b34cc785e920b"], + ["discord.js", "https://github.com/NotEnoughUpdates/discord.js.git#commit=8551402ddbac89a53133385f953c595e8be16d98"], ["discord.js-minesweeper", "npm:1.0.6"], ["esbuild", "npm:0.12.15"], - ["eslint", "npm:7.30.0"], + ["eslint", "npm:7.31.0"], ["eslint-config-prettier", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:8.3.0"], ["fuse.js", "npm:6.4.6"], ["got", "npm:11.8.2"], @@ -173,12 +173,12 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["@eslint/eslintrc", [ - ["npm:0.4.2", { - "packageLocation": "./.yarn/cache/@eslint-eslintrc-npm-0.4.2-f8b688e654-17f90cf079.zip/node_modules/@eslint/eslintrc/", + ["npm:0.4.3", { + "packageLocation": "./.yarn/cache/@eslint-eslintrc-npm-0.4.3-ee1bbcab87-03a7704150.zip/node_modules/@eslint/eslintrc/", "packageDependencies": [ - ["@eslint/eslintrc", "npm:0.4.2"], + ["@eslint/eslintrc", "npm:0.4.3"], ["ajv", "npm:6.12.6"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["espree", "npm:7.3.1"], ["globals", "npm:13.10.0"], ["ignore", "npm:4.0.6"], @@ -196,7 +196,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [ ["@humanwhocodes/config-array", "npm:0.5.0"], ["@humanwhocodes/object-schema", "npm:1.2.0"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["minimatch", "npm:3.0.4"] ], "linkType": "HARD", @@ -261,10 +261,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["@szmarczak/http-timer", [ - ["npm:4.0.5", { - "packageLocation": "./.yarn/cache/@szmarczak-http-timer-npm-4.0.5-03463d10ab-27b713859b.zip/node_modules/@szmarczak/http-timer/", + ["npm:4.0.6", { + "packageLocation": "./.yarn/cache/@szmarczak-http-timer-npm-4.0.6-6ace00d82d-c29df3bcec.zip/node_modules/@szmarczak/http-timer/", "packageDependencies": [ - ["@szmarczak/http-timer", "npm:4.0.5"], + ["@szmarczak/http-timer", "npm:4.0.6"], ["defer-to-connect", "npm:2.0.1"] ], "linkType": "HARD", @@ -276,7 +276,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [ ["@types/body-parser", "npm:1.19.1"], ["@types/connect", "npm:3.4.35"], - ["@types/node", "npm:16.3.1"] + ["@types/node", "npm:16.3.3"] ], "linkType": "HARD", }] @@ -288,7 +288,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/cacheable-request", "npm:6.0.2"], ["@types/http-cache-semantics", "npm:4.0.1"], ["@types/keyv", "npm:3.1.2"], - ["@types/node", "npm:16.3.1"], + ["@types/node", "npm:16.3.3"], ["@types/responselike", "npm:1.0.0"] ], "linkType": "HARD", @@ -308,7 +308,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/@types-connect-npm-3.4.35-7337eee0a3-fe81351470.zip/node_modules/@types/connect/", "packageDependencies": [ ["@types/connect", "npm:3.4.35"], - ["@types/node", "npm:16.3.1"] + ["@types/node", "npm:16.3.3"] ], "linkType": "HARD", }] @@ -331,7 +331,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/@types-express-serve-static-core-npm-4.17.24-cd6b9fd3ba-2f0b471126.zip/node_modules/@types/express-serve-static-core/", "packageDependencies": [ ["@types/express-serve-static-core", "npm:4.17.24"], - ["@types/node", "npm:16.3.1"], + ["@types/node", "npm:16.3.3"], ["@types/qs", "npm:6.9.7"], ["@types/range-parser", "npm:1.2.4"] ], @@ -370,7 +370,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/@types-keyv-npm-3.1.2-f562027480-769e462ae9.zip/node_modules/@types/keyv/", "packageDependencies": [ ["@types/keyv", "npm:3.1.2"], - ["@types/node", "npm:16.3.1"] + ["@types/node", "npm:16.3.3"] ], "linkType": "HARD", }] @@ -401,10 +401,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "HARD", }], - ["npm:16.3.1", { - "packageLocation": "./.yarn/cache/@types-node-npm-16.3.1-c090cf2395-2a9d69db32.zip/node_modules/@types/node/", + ["npm:16.3.3", { + "packageLocation": "./.yarn/cache/@types-node-npm-16.3.3-0c09c861f5-fa885b835e.zip/node_modules/@types/node/", "packageDependencies": [ - ["@types/node", "npm:16.3.1"] + ["@types/node", "npm:16.3.3"] ], "linkType": "HARD", }] @@ -432,7 +432,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/@types-responselike-npm-1.0.0-85dd08af42-e99fc7cc62.zip/node_modules/@types/responselike/", "packageDependencies": [ ["@types/responselike", "npm:1.0.0"], - ["@types/node", "npm:16.3.1"] + ["@types/node", "npm:16.3.3"] ], "linkType": "HARD", }] @@ -443,7 +443,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [ ["@types/serve-static", "npm:1.13.10"], ["@types/mime", "npm:1.3.2"], - ["@types/node", "npm:16.3.1"] + ["@types/node", "npm:16.3.3"] ], "linkType": "HARD", }] @@ -471,34 +471,34 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/@types-ws-npm-7.4.6-292d5dff7c-500c2f7edc.zip/node_modules/@types/ws/", "packageDependencies": [ ["@types/ws", "npm:7.4.6"], - ["@types/node", "npm:16.3.1"] + ["@types/node", "npm:16.3.3"] ], "linkType": "HARD", }] ]], ["@typescript-eslint/eslint-plugin", [ - ["npm:4.28.2", { - "packageLocation": "./.yarn/cache/@typescript-eslint-eslint-plugin-npm-4.28.2-01070735da-279af7f5cd.zip/node_modules/@typescript-eslint/eslint-plugin/", + ["npm:4.28.3", { + "packageLocation": "./.yarn/cache/@typescript-eslint-eslint-plugin-npm-4.28.3-a935f11b7e-2ac7113dbb.zip/node_modules/@typescript-eslint/eslint-plugin/", "packageDependencies": [ - ["@typescript-eslint/eslint-plugin", "npm:4.28.2"] + ["@typescript-eslint/eslint-plugin", "npm:4.28.3"] ], "linkType": "SOFT", }], - ["virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.2", { - "packageLocation": "./.yarn/__virtual__/@typescript-eslint-eslint-plugin-virtual-65784e659f/0/cache/@typescript-eslint-eslint-plugin-npm-4.28.2-01070735da-279af7f5cd.zip/node_modules/@typescript-eslint/eslint-plugin/", + ["virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.3", { + "packageLocation": "./.yarn/__virtual__/@typescript-eslint-eslint-plugin-virtual-48a90f2aa2/0/cache/@typescript-eslint-eslint-plugin-npm-4.28.3-a935f11b7e-2ac7113dbb.zip/node_modules/@typescript-eslint/eslint-plugin/", "packageDependencies": [ - ["@typescript-eslint/eslint-plugin", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.2"], + ["@typescript-eslint/eslint-plugin", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.3"], ["@types/eslint", null], ["@types/typescript-eslint__parser", null], - ["@typescript-eslint/experimental-utils", "virtual:65784e659f47767d1bd70f01e96cacf8ae087d857ec65905ba3623b44fc5dc60d4e0d38c4dced9a8fcc2d8cdc8b727a71711606696c35af461b2684a9bbbf56a#npm:4.28.2"], - ["@typescript-eslint/parser", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.2"], - ["@typescript-eslint/scope-manager", "npm:4.28.2"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], - ["eslint", "npm:7.30.0"], + ["@typescript-eslint/experimental-utils", "virtual:48a90f2aa29447f8a23308932fb43239dc8b2cee79d43f9771e225b9f510f03dff55d9ea859d7640cdde639a07751a1228300dded053143c395e67291b6eaa6d#npm:4.28.3"], + ["@typescript-eslint/parser", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.3"], + ["@typescript-eslint/scope-manager", "npm:4.28.3"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], + ["eslint", "npm:7.31.0"], ["functional-red-black-tree", "npm:1.0.1"], ["regexpp", "npm:3.2.0"], ["semver", "npm:7.3.5"], - ["tsutils", "virtual:65784e659f47767d1bd70f01e96cacf8ae087d857ec65905ba3623b44fc5dc60d4e0d38c4dced9a8fcc2d8cdc8b727a71711606696c35af461b2684a9bbbf56a#npm:3.21.0"], + ["tsutils", "virtual:48a90f2aa29447f8a23308932fb43239dc8b2cee79d43f9771e225b9f510f03dff55d9ea859d7640cdde639a07751a1228300dded053143c395e67291b6eaa6d#npm:3.21.0"], ["typescript", "patch:typescript@npm%3A4.2.4#~builtin<compat/typescript>::version=4.2.4&hash=d8b4e7"] ], "packagePeers": [ @@ -512,25 +512,25 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["@typescript-eslint/experimental-utils", [ - ["npm:4.28.2", { - "packageLocation": "./.yarn/cache/@typescript-eslint-experimental-utils-npm-4.28.2-149fee615c-5b4159d4eb.zip/node_modules/@typescript-eslint/experimental-utils/", + ["npm:4.28.3", { + "packageLocation": "./.yarn/cache/@typescript-eslint-experimental-utils-npm-4.28.3-9bf618981e-09b1b19631.zip/node_modules/@typescript-eslint/experimental-utils/", "packageDependencies": [ - ["@typescript-eslint/experimental-utils", "npm:4.28.2"] + ["@typescript-eslint/experimental-utils", "npm:4.28.3"] ], "linkType": "SOFT", }], - ["virtual:65784e659f47767d1bd70f01e96cacf8ae087d857ec65905ba3623b44fc5dc60d4e0d38c4dced9a8fcc2d8cdc8b727a71711606696c35af461b2684a9bbbf56a#npm:4.28.2", { - "packageLocation": "./.yarn/__virtual__/@typescript-eslint-experimental-utils-virtual-9a0b65561b/0/cache/@typescript-eslint-experimental-utils-npm-4.28.2-149fee615c-5b4159d4eb.zip/node_modules/@typescript-eslint/experimental-utils/", + ["virtual:48a90f2aa29447f8a23308932fb43239dc8b2cee79d43f9771e225b9f510f03dff55d9ea859d7640cdde639a07751a1228300dded053143c395e67291b6eaa6d#npm:4.28.3", { + "packageLocation": "./.yarn/__virtual__/@typescript-eslint-experimental-utils-virtual-936b4bf6a1/0/cache/@typescript-eslint-experimental-utils-npm-4.28.3-9bf618981e-09b1b19631.zip/node_modules/@typescript-eslint/experimental-utils/", "packageDependencies": [ - ["@typescript-eslint/experimental-utils", "virtual:65784e659f47767d1bd70f01e96cacf8ae087d857ec65905ba3623b44fc5dc60d4e0d38c4dced9a8fcc2d8cdc8b727a71711606696c35af461b2684a9bbbf56a#npm:4.28.2"], + ["@typescript-eslint/experimental-utils", "virtual:48a90f2aa29447f8a23308932fb43239dc8b2cee79d43f9771e225b9f510f03dff55d9ea859d7640cdde639a07751a1228300dded053143c395e67291b6eaa6d#npm:4.28.3"], ["@types/eslint", null], ["@types/json-schema", "npm:7.0.8"], - ["@typescript-eslint/scope-manager", "npm:4.28.2"], - ["@typescript-eslint/types", "npm:4.28.2"], - ["@typescript-eslint/typescript-estree", "virtual:9a0b65561b23a2b35ac456965ea490d304b12e0147f19db32fb77d01f04b07334a4636f11fd45b7701e9c9b7a7952025530f0f38748a7e21e782249080b26c38#npm:4.28.2"], - ["eslint", "npm:7.30.0"], + ["@typescript-eslint/scope-manager", "npm:4.28.3"], + ["@typescript-eslint/types", "npm:4.28.3"], + ["@typescript-eslint/typescript-estree", "virtual:936b4bf6a13334da80ed52bc85894380980a736f49abd062add9593d83e7e35e8280b273c75a724285a3f8cd57e2f850778455ba406084687f220a5f13a75ffd#npm:4.28.3"], + ["eslint", "npm:7.31.0"], ["eslint-scope", "npm:5.1.1"], - ["eslint-utils", "virtual:9a0b65561b23a2b35ac456965ea490d304b12e0147f19db32fb77d01f04b07334a4636f11fd45b7701e9c9b7a7952025530f0f38748a7e21e782249080b26c38#npm:3.0.0"] + ["eslint-utils", "virtual:936b4bf6a13334da80ed52bc85894380980a736f49abd062add9593d83e7e35e8280b273c75a724285a3f8cd57e2f850778455ba406084687f220a5f13a75ffd#npm:3.0.0"] ], "packagePeers": [ "@types/eslint", @@ -540,23 +540,23 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["@typescript-eslint/parser", [ - ["npm:4.28.2", { - "packageLocation": "./.yarn/cache/@typescript-eslint-parser-npm-4.28.2-99735c8028-dd5ed20652.zip/node_modules/@typescript-eslint/parser/", + ["npm:4.28.3", { + "packageLocation": "./.yarn/cache/@typescript-eslint-parser-npm-4.28.3-e5b75319ef-3a5d64237e.zip/node_modules/@typescript-eslint/parser/", "packageDependencies": [ - ["@typescript-eslint/parser", "npm:4.28.2"] + ["@typescript-eslint/parser", "npm:4.28.3"] ], "linkType": "SOFT", }], - ["virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.2", { - "packageLocation": "./.yarn/__virtual__/@typescript-eslint-parser-virtual-2b2a5f7a2d/0/cache/@typescript-eslint-parser-npm-4.28.2-99735c8028-dd5ed20652.zip/node_modules/@typescript-eslint/parser/", + ["virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.3", { + "packageLocation": "./.yarn/__virtual__/@typescript-eslint-parser-virtual-8c84d446b7/0/cache/@typescript-eslint-parser-npm-4.28.3-e5b75319ef-3a5d64237e.zip/node_modules/@typescript-eslint/parser/", "packageDependencies": [ - ["@typescript-eslint/parser", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.2"], + ["@typescript-eslint/parser", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.3"], ["@types/eslint", null], - ["@typescript-eslint/scope-manager", "npm:4.28.2"], - ["@typescript-eslint/types", "npm:4.28.2"], - ["@typescript-eslint/typescript-estree", "virtual:2b2a5f7a2dfd41e59c3d0344a41d4679003ce64226f5555e56df9016cbc42c3e348d8287bc94e2e608e0099ebf28e5e09faad2139c30c85854f2f82cd34213d4#npm:4.28.2"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], - ["eslint", "npm:7.30.0"], + ["@typescript-eslint/scope-manager", "npm:4.28.3"], + ["@typescript-eslint/types", "npm:4.28.3"], + ["@typescript-eslint/typescript-estree", "virtual:8c84d446b74bbedb1b569a7300f0ea79e86f3411ba5f9d1a143bd7b93f7717815e60f6870a01d9fce13150f24abcab52fdc2bf49ef72b738ed2360c94927a1d7#npm:4.28.3"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], + ["eslint", "npm:7.31.0"], ["typescript", "patch:typescript@npm%3A4.2.4#~builtin<compat/typescript>::version=4.2.4&hash=d8b4e7"] ], "packagePeers": [ @@ -568,44 +568,44 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["@typescript-eslint/scope-manager", [ - ["npm:4.28.2", { - "packageLocation": "./.yarn/cache/@typescript-eslint-scope-manager-npm-4.28.2-b8c2d69e5c-4422e6a197.zip/node_modules/@typescript-eslint/scope-manager/", + ["npm:4.28.3", { + "packageLocation": "./.yarn/cache/@typescript-eslint-scope-manager-npm-4.28.3-77838278dd-9ffb955581.zip/node_modules/@typescript-eslint/scope-manager/", "packageDependencies": [ - ["@typescript-eslint/scope-manager", "npm:4.28.2"], - ["@typescript-eslint/types", "npm:4.28.2"], - ["@typescript-eslint/visitor-keys", "npm:4.28.2"] + ["@typescript-eslint/scope-manager", "npm:4.28.3"], + ["@typescript-eslint/types", "npm:4.28.3"], + ["@typescript-eslint/visitor-keys", "npm:4.28.3"] ], "linkType": "HARD", }] ]], ["@typescript-eslint/types", [ - ["npm:4.28.2", { - "packageLocation": "./.yarn/cache/@typescript-eslint-types-npm-4.28.2-158ea53d4a-3e03777bb4.zip/node_modules/@typescript-eslint/types/", + ["npm:4.28.3", { + "packageLocation": "./.yarn/cache/@typescript-eslint-types-npm-4.28.3-fee3305a1a-15f052f92e.zip/node_modules/@typescript-eslint/types/", "packageDependencies": [ - ["@typescript-eslint/types", "npm:4.28.2"] + ["@typescript-eslint/types", "npm:4.28.3"] ], "linkType": "HARD", }] ]], ["@typescript-eslint/typescript-estree", [ - ["npm:4.28.2", { - "packageLocation": "./.yarn/cache/@typescript-eslint-typescript-estree-npm-4.28.2-9689f71c15-b098c01cf2.zip/node_modules/@typescript-eslint/typescript-estree/", + ["npm:4.28.3", { + "packageLocation": "./.yarn/cache/@typescript-eslint-typescript-estree-npm-4.28.3-61ee5e3843-674cdd5e3c.zip/node_modules/@typescript-eslint/typescript-estree/", "packageDependencies": [ - ["@typescript-eslint/typescript-estree", "npm:4.28.2"] + ["@typescript-eslint/typescript-estree", "npm:4.28.3"] ], "linkType": "SOFT", }], - ["virtual:0b2a98b04801e7c5e352e78c20b3d43b8788e2df7e18f73d547bf7ef07d88839905bfdc80d1bf00f7b250f66198c373e1e2aee2a45b316c6eeb61083f1b50e29#npm:4.28.2", { - "packageLocation": "./.yarn/__virtual__/@typescript-eslint-typescript-estree-virtual-e80cdc72e0/0/cache/@typescript-eslint-typescript-estree-npm-4.28.2-9689f71c15-b098c01cf2.zip/node_modules/@typescript-eslint/typescript-estree/", + ["virtual:0b2a98b04801e7c5e352e78c20b3d43b8788e2df7e18f73d547bf7ef07d88839905bfdc80d1bf00f7b250f66198c373e1e2aee2a45b316c6eeb61083f1b50e29#npm:4.28.3", { + "packageLocation": "./.yarn/__virtual__/@typescript-eslint-typescript-estree-virtual-e179742e77/0/cache/@typescript-eslint-typescript-estree-npm-4.28.3-61ee5e3843-674cdd5e3c.zip/node_modules/@typescript-eslint/typescript-estree/", "packageDependencies": [ - ["@typescript-eslint/typescript-estree", "virtual:0b2a98b04801e7c5e352e78c20b3d43b8788e2df7e18f73d547bf7ef07d88839905bfdc80d1bf00f7b250f66198c373e1e2aee2a45b316c6eeb61083f1b50e29#npm:4.28.2"], - ["@typescript-eslint/types", "npm:4.28.2"], - ["@typescript-eslint/visitor-keys", "npm:4.28.2"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["@typescript-eslint/typescript-estree", "virtual:0b2a98b04801e7c5e352e78c20b3d43b8788e2df7e18f73d547bf7ef07d88839905bfdc80d1bf00f7b250f66198c373e1e2aee2a45b316c6eeb61083f1b50e29#npm:4.28.3"], + ["@typescript-eslint/types", "npm:4.28.3"], + ["@typescript-eslint/visitor-keys", "npm:4.28.3"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["globby", "npm:11.0.4"], ["is-glob", "npm:4.0.1"], ["semver", "npm:7.3.5"], - ["tsutils", "virtual:e80cdc72e08c6e158b3fe27966e42eeafb0f16e195057b040b6c514670447c80dafe8fc16100d9b2f7bb32fe41bdf1e09babdd886e6cbab55d81f720d133e296#npm:3.21.0"], + ["tsutils", "virtual:e179742e770d7c10719c1360d60626aa38e5567a66ed3632d2b563a638c5ecc352df6a69dd20180ca019f1d703aa19f6e780b23c6e128d107b0fd25542aca63a#npm:3.21.0"], ["typescript", "patch:typescript@npm%3A3.9.10#~builtin<compat/typescript>::version=3.9.10&hash=d8b4e7"] ], "packagePeers": [ @@ -613,17 +613,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "HARD", }], - ["virtual:2b2a5f7a2dfd41e59c3d0344a41d4679003ce64226f5555e56df9016cbc42c3e348d8287bc94e2e608e0099ebf28e5e09faad2139c30c85854f2f82cd34213d4#npm:4.28.2", { - "packageLocation": "./.yarn/__virtual__/@typescript-eslint-typescript-estree-virtual-c1c1619803/0/cache/@typescript-eslint-typescript-estree-npm-4.28.2-9689f71c15-b098c01cf2.zip/node_modules/@typescript-eslint/typescript-estree/", + ["virtual:8c84d446b74bbedb1b569a7300f0ea79e86f3411ba5f9d1a143bd7b93f7717815e60f6870a01d9fce13150f24abcab52fdc2bf49ef72b738ed2360c94927a1d7#npm:4.28.3", { + "packageLocation": "./.yarn/__virtual__/@typescript-eslint-typescript-estree-virtual-7b40d47d4e/0/cache/@typescript-eslint-typescript-estree-npm-4.28.3-61ee5e3843-674cdd5e3c.zip/node_modules/@typescript-eslint/typescript-estree/", "packageDependencies": [ - ["@typescript-eslint/typescript-estree", "virtual:2b2a5f7a2dfd41e59c3d0344a41d4679003ce64226f5555e56df9016cbc42c3e348d8287bc94e2e608e0099ebf28e5e09faad2139c30c85854f2f82cd34213d4#npm:4.28.2"], - ["@typescript-eslint/types", "npm:4.28.2"], - ["@typescript-eslint/visitor-keys", "npm:4.28.2"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["@typescript-eslint/typescript-estree", "virtual:8c84d446b74bbedb1b569a7300f0ea79e86f3411ba5f9d1a143bd7b93f7717815e60f6870a01d9fce13150f24abcab52fdc2bf49ef72b738ed2360c94927a1d7#npm:4.28.3"], + ["@typescript-eslint/types", "npm:4.28.3"], + ["@typescript-eslint/visitor-keys", "npm:4.28.3"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["globby", "npm:11.0.4"], ["is-glob", "npm:4.0.1"], ["semver", "npm:7.3.5"], - ["tsutils", "virtual:65784e659f47767d1bd70f01e96cacf8ae087d857ec65905ba3623b44fc5dc60d4e0d38c4dced9a8fcc2d8cdc8b727a71711606696c35af461b2684a9bbbf56a#npm:3.21.0"], + ["tsutils", "virtual:48a90f2aa29447f8a23308932fb43239dc8b2cee79d43f9771e225b9f510f03dff55d9ea859d7640cdde639a07751a1228300dded053143c395e67291b6eaa6d#npm:3.21.0"], ["typescript", "patch:typescript@npm%3A4.2.4#~builtin<compat/typescript>::version=4.2.4&hash=d8b4e7"] ], "packagePeers": [ @@ -631,17 +631,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "HARD", }], - ["virtual:9a0b65561b23a2b35ac456965ea490d304b12e0147f19db32fb77d01f04b07334a4636f11fd45b7701e9c9b7a7952025530f0f38748a7e21e782249080b26c38#npm:4.28.2", { - "packageLocation": "./.yarn/__virtual__/@typescript-eslint-typescript-estree-virtual-dcb6da0364/0/cache/@typescript-eslint-typescript-estree-npm-4.28.2-9689f71c15-b098c01cf2.zip/node_modules/@typescript-eslint/typescript-estree/", + ["virtual:936b4bf6a13334da80ed52bc85894380980a736f49abd062add9593d83e7e35e8280b273c75a724285a3f8cd57e2f850778455ba406084687f220a5f13a75ffd#npm:4.28.3", { + "packageLocation": "./.yarn/__virtual__/@typescript-eslint-typescript-estree-virtual-04151df1d0/0/cache/@typescript-eslint-typescript-estree-npm-4.28.3-61ee5e3843-674cdd5e3c.zip/node_modules/@typescript-eslint/typescript-estree/", "packageDependencies": [ - ["@typescript-eslint/typescript-estree", "virtual:9a0b65561b23a2b35ac456965ea490d304b12e0147f19db32fb77d01f04b07334a4636f11fd45b7701e9c9b7a7952025530f0f38748a7e21e782249080b26c38#npm:4.28.2"], - ["@typescript-eslint/types", "npm:4.28.2"], - ["@typescript-eslint/visitor-keys", "npm:4.28.2"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["@typescript-eslint/typescript-estree", "virtual:936b4bf6a13334da80ed52bc85894380980a736f49abd062add9593d83e7e35e8280b273c75a724285a3f8cd57e2f850778455ba406084687f220a5f13a75ffd#npm:4.28.3"], + ["@typescript-eslint/types", "npm:4.28.3"], + ["@typescript-eslint/visitor-keys", "npm:4.28.3"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["globby", "npm:11.0.4"], ["is-glob", "npm:4.0.1"], ["semver", "npm:7.3.5"], - ["tsutils", "virtual:dcb6da0364d12e543c9b52f997444d6b7da6d6c3322b9be6588495dc1850df8b13ee7b184f37572b11c5d04e7dbbbd18026c2d8dee73c33c06f4dc58e61e3600#npm:3.21.0"], + ["tsutils", "virtual:04151df1d074588ffaadc5bd67fbd7c2f5de2ed6fecf9ad92e4811865cd3caf44565bfa8eeb00048e50159a1b00ad6a30f4b7a79180dbe953d87deb9d655c419#npm:3.21.0"], ["typescript", null] ], "packagePeers": [ @@ -651,11 +651,11 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["@typescript-eslint/visitor-keys", [ - ["npm:4.28.2", { - "packageLocation": "./.yarn/cache/@typescript-eslint-visitor-keys-npm-4.28.2-60bbc629d9-91610c6948.zip/node_modules/@typescript-eslint/visitor-keys/", + ["npm:4.28.3", { + "packageLocation": "./.yarn/cache/@typescript-eslint-visitor-keys-npm-4.28.3-73792b53d2-b570740ae1.zip/node_modules/@typescript-eslint/visitor-keys/", "packageDependencies": [ - ["@typescript-eslint/visitor-keys", "npm:4.28.2"], - ["@typescript-eslint/types", "npm:4.28.2"], + ["@typescript-eslint/visitor-keys", "npm:4.28.3"], + ["@typescript-eslint/types", "npm:4.28.3"], ["eslint-visitor-keys", "npm:2.1.0"] ], "linkType": "HARD", @@ -714,10 +714,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "HARD", }], - ["npm:8.6.1", { - "packageLocation": "./.yarn/cache/ajv-npm-8.6.1-cc38a5d5d7-e091264ff6.zip/node_modules/ajv/", + ["npm:8.6.2", { + "packageLocation": "./.yarn/cache/ajv-npm-8.6.2-712407c2bc-b86d6cb86c.zip/node_modules/ajv/", "packageDependencies": [ - ["ajv", "npm:8.6.1"], + ["ajv", "npm:8.6.2"], ["fast-deep-equal", "npm:3.1.3"], ["json-schema-traverse", "npm:1.0.0"], ["require-from-string", "npm:2.0.2"], @@ -938,17 +938,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/node", "npm:14.17.5"], ["@types/tinycolor2", "npm:1.4.3"], ["@types/uuid", "npm:8.3.1"], - ["@typescript-eslint/eslint-plugin", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.2"], - ["@typescript-eslint/parser", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.2"], + ["@typescript-eslint/eslint-plugin", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.3"], + ["@typescript-eslint/parser", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.28.3"], ["body-parser", "npm:1.19.0"], ["chalk", "npm:4.1.1"], ["common-tags", "npm:1.8.0"], - ["discord-akairo", "https://github.com/NotEnoughUpdates/discord-akairo.git#commit=65d760faed662e816ced3ba8ae7520e513e37ee2"], + ["discord-akairo", "https://github.com/NotEnoughUpdates/discord-akairo.git#commit=7164ae3af00266b0ac357e3e65ef5d4101308c40"], ["discord-api-types", "npm:0.19.0-next.f393ba520d7d6d2aacaca7b3ca5d355fab614f6e"], - ["discord.js", "https://github.com/NotEnoughUpdates/discord.js.git#commit=20c84839fa43aad6c47ff6ffb11b34cc785e920b"], + ["discord.js", "https://github.com/NotEnoughUpdates/discord.js.git#commit=8551402ddbac89a53133385f953c595e8be16d98"], ["discord.js-minesweeper", "npm:1.0.6"], ["esbuild", "npm:0.12.15"], - ["eslint", "npm:7.30.0"], + ["eslint", "npm:7.31.0"], ["eslint-config-prettier", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:8.3.0"], ["fuse.js", "npm:6.4.6"], ["got", "npm:11.8.2"], @@ -1215,10 +1215,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "HARD", }], - ["virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2", { - "packageLocation": "./.yarn/__virtual__/debug-virtual-fb8400fa14/0/cache/debug-npm-4.3.2-f0148b6afe-820ea160e2.zip/node_modules/debug/", + ["virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2", { + "packageLocation": "./.yarn/__virtual__/debug-virtual-11a7ab7409/0/cache/debug-npm-4.3.2-f0148b6afe-820ea160e2.zip/node_modules/debug/", "packageDependencies": [ - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["ms", "npm:2.1.2"], ["supports-color", null] ], @@ -1309,7 +1309,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [ ["dependency-tree", "npm:8.1.1"], ["commander", "npm:2.20.3"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["filing-cabinet", "npm:3.0.0"], ["precinct", "npm:8.1.0"], ["typescript", "patch:typescript@npm%3A3.9.10#~builtin<compat/typescript>::version=3.9.10&hash=d8b4e7"] @@ -1356,7 +1356,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/detective-less-npm-1.0.2-51713fb487-858936fbad.zip/node_modules/detective-less/", "packageDependencies": [ ["detective-less", "npm:1.0.2"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["gonzales-pe", "npm:4.3.0"], ["node-source-walk", "npm:4.2.0"] ], @@ -1368,7 +1368,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/detective-postcss-npm-4.0.0-3898e15a71-e4c9fed316.zip/node_modules/detective-postcss/", "packageDependencies": [ ["detective-postcss", "npm:4.0.0"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["is-url", "npm:1.2.4"], ["postcss", "npm:8.3.5"], ["postcss-values-parser", "npm:2.0.1"] @@ -1379,7 +1379,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/detective-postcss-npm-5.0.0-8244b49af7-68e36bbc39.zip/node_modules/detective-postcss/", "packageDependencies": [ ["detective-postcss", "npm:5.0.0"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["is-url", "npm:1.2.4"], ["postcss", "npm:8.3.5"], ["postcss-values-parser", "virtual:8244b49af75f36ab3bbbb3108f5b6cbb14bde9685c57375a5ac631aa5412460bb10f35c7d7d11e8249793723e99d29770c9d223d8ff83b9be690e7ae8761bba5#npm:5.0.0"] @@ -1392,7 +1392,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/detective-sass-npm-3.0.1-9633e30583-86f76671d9.zip/node_modules/detective-sass/", "packageDependencies": [ ["detective-sass", "npm:3.0.1"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["gonzales-pe", "npm:4.3.0"], ["node-source-walk", "npm:4.2.0"] ], @@ -1404,7 +1404,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/detective-scss-npm-2.0.1-062d87fc43-e130745b4a.zip/node_modules/detective-scss/", "packageDependencies": [ ["detective-scss", "npm:2.0.1"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["gonzales-pe", "npm:4.3.0"], ["node-source-walk", "npm:4.2.0"] ], @@ -1425,7 +1425,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/detective-typescript-npm-7.0.0-0b2a98b048-fc92e20e7b.zip/node_modules/detective-typescript/", "packageDependencies": [ ["detective-typescript", "npm:7.0.0"], - ["@typescript-eslint/typescript-estree", "virtual:0b2a98b04801e7c5e352e78c20b3d43b8788e2df7e18f73d547bf7ef07d88839905bfdc80d1bf00f7b250f66198c373e1e2aee2a45b316c6eeb61083f1b50e29#npm:4.28.2"], + ["@typescript-eslint/typescript-estree", "virtual:0b2a98b04801e7c5e352e78c20b3d43b8788e2df7e18f73d547bf7ef07d88839905bfdc80d1bf00f7b250f66198c373e1e2aee2a45b316c6eeb61083f1b50e29#npm:4.28.3"], ["ast-module-types", "npm:2.7.1"], ["node-source-walk", "npm:4.2.0"], ["typescript", "patch:typescript@npm%3A3.9.10#~builtin<compat/typescript>::version=3.9.10&hash=d8b4e7"] @@ -1444,10 +1444,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["discord-akairo", [ - ["https://github.com/NotEnoughUpdates/discord-akairo.git#commit=65d760faed662e816ced3ba8ae7520e513e37ee2", { - "packageLocation": "./.yarn/unplugged/discord-akairo-https-65e2176cc3/node_modules/discord-akairo/", + ["https://github.com/NotEnoughUpdates/discord-akairo.git#commit=7164ae3af00266b0ac357e3e65ef5d4101308c40", { + "packageLocation": "./.yarn/unplugged/discord-akairo-https-feba09ee8e/node_modules/discord-akairo/", "packageDependencies": [ - ["discord-akairo", "https://github.com/NotEnoughUpdates/discord-akairo.git#commit=65d760faed662e816ced3ba8ae7520e513e37ee2"] + ["discord-akairo", "https://github.com/NotEnoughUpdates/discord-akairo.git#commit=7164ae3af00266b0ac357e3e65ef5d4101308c40"] ], "linkType": "HARD", }] @@ -1469,10 +1469,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["discord.js", [ - ["https://github.com/NotEnoughUpdates/discord.js.git#commit=20c84839fa43aad6c47ff6ffb11b34cc785e920b", { - "packageLocation": "./.yarn/cache/discord.js-https-5f1ff7cab7-1d6f87e67f.zip/node_modules/discord.js/", + ["https://github.com/NotEnoughUpdates/discord.js.git#commit=8551402ddbac89a53133385f953c595e8be16d98", { + "packageLocation": "./.yarn/cache/discord.js-https-0c3fe5b772-f5a41b02fa.zip/node_modules/discord.js/", "packageDependencies": [ - ["discord.js", "https://github.com/NotEnoughUpdates/discord.js.git#commit=20c84839fa43aad6c47ff6ffb11b34cc785e920b"], + ["discord.js", "https://github.com/NotEnoughUpdates/discord.js.git#commit=8551402ddbac89a53133385f953c595e8be16d98"], ["@discordjs/builders", "npm:0.2.0"], ["@discordjs/collection", "npm:0.1.6"], ["@discordjs/form-data", "npm:3.0.1"], @@ -1603,17 +1603,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["eslint", [ - ["npm:7.30.0", { - "packageLocation": "./.yarn/cache/eslint-npm-7.30.0-8a8a06f9b4-872f90844b.zip/node_modules/eslint/", + ["npm:7.31.0", { + "packageLocation": "./.yarn/cache/eslint-npm-7.31.0-3e3814d85e-fd73d07ce0.zip/node_modules/eslint/", "packageDependencies": [ - ["eslint", "npm:7.30.0"], + ["eslint", "npm:7.31.0"], ["@babel/code-frame", "npm:7.12.11"], - ["@eslint/eslintrc", "npm:0.4.2"], + ["@eslint/eslintrc", "npm:0.4.3"], ["@humanwhocodes/config-array", "npm:0.5.0"], ["ajv", "npm:6.12.6"], ["chalk", "npm:4.1.1"], ["cross-spawn", "npm:7.0.3"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["doctrine", "npm:3.0.0"], ["enquirer", "npm:2.3.6"], ["escape-string-regexp", "npm:4.0.0"], @@ -1664,7 +1664,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [ ["eslint-config-prettier", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:8.3.0"], ["@types/eslint", null], - ["eslint", "npm:7.30.0"] + ["eslint", "npm:7.31.0"] ], "packagePeers": [ "@types/eslint", @@ -1700,12 +1700,12 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "SOFT", }], - ["virtual:9a0b65561b23a2b35ac456965ea490d304b12e0147f19db32fb77d01f04b07334a4636f11fd45b7701e9c9b7a7952025530f0f38748a7e21e782249080b26c38#npm:3.0.0", { - "packageLocation": "./.yarn/__virtual__/eslint-utils-virtual-3f61043ccc/0/cache/eslint-utils-npm-3.0.0-630b3a4013-0668fe02f5.zip/node_modules/eslint-utils/", + ["virtual:936b4bf6a13334da80ed52bc85894380980a736f49abd062add9593d83e7e35e8280b273c75a724285a3f8cd57e2f850778455ba406084687f220a5f13a75ffd#npm:3.0.0", { + "packageLocation": "./.yarn/__virtual__/eslint-utils-virtual-d609d03c31/0/cache/eslint-utils-npm-3.0.0-630b3a4013-0668fe02f5.zip/node_modules/eslint-utils/", "packageDependencies": [ - ["eslint-utils", "virtual:9a0b65561b23a2b35ac456965ea490d304b12e0147f19db32fb77d01f04b07334a4636f11fd45b7701e9c9b7a7952025530f0f38748a7e21e782249080b26c38#npm:3.0.0"], + ["eslint-utils", "virtual:936b4bf6a13334da80ed52bc85894380980a736f49abd062add9593d83e7e35e8280b273c75a724285a3f8cd57e2f850778455ba406084687f220a5f13a75ffd#npm:3.0.0"], ["@types/eslint", null], - ["eslint", "npm:7.30.0"], + ["eslint", "npm:7.31.0"], ["eslint-visitor-keys", "npm:2.1.0"] ], "packagePeers": [ @@ -1874,7 +1874,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["filing-cabinet", "npm:3.0.0"], ["app-module-path", "npm:2.2.0"], ["commander", "npm:2.20.3"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["decomment", "npm:0.9.4"], ["enhanced-resolve", "npm:5.8.2"], ["is-relative-path", "npm:1.0.2"], @@ -2060,7 +2060,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [ ["got", "npm:11.8.2"], ["@sindresorhus/is", "npm:4.0.1"], - ["@szmarczak/http-timer", "npm:4.0.5"], + ["@szmarczak/http-timer", "npm:4.0.6"], ["@types/cacheable-request", "npm:6.0.2"], ["@types/responselike", "npm:1.0.0"], ["cacheable-lookup", "npm:5.0.4"], @@ -2272,10 +2272,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["is-core-module", [ - ["npm:2.4.0", { - "packageLocation": "./.yarn/cache/is-core-module-npm-2.4.0-bae19c65cd-c498902d4c.zip/node_modules/is-core-module/", + ["npm:2.5.0", { + "packageLocation": "./.yarn/cache/is-core-module-npm-2.5.0-5f48eb2995-e007de6ca5.zip/node_modules/is-core-module/", "packageDependencies": [ - ["is-core-module", "npm:2.4.0"], + ["is-core-module", "npm:2.5.0"], ["has", "npm:1.0.3"] ], "linkType": "HARD", @@ -2548,7 +2548,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["chalk", "npm:4.1.1"], ["commander", "npm:7.2.0"], ["commondir", "npm:1.0.1"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["dependency-tree", "npm:8.1.1"], ["detective-amd", "npm:3.1.0"], ["detective-cjs", "npm:3.1.1"], @@ -2689,7 +2689,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [ ["module-lookup-amd", "npm:7.0.1"], ["commander", "npm:2.20.3"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["glob", "npm:7.1.7"], ["requirejs", "npm:2.3.6"], ["requirejs-config-file", "npm:4.0.0"] @@ -3147,7 +3147,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [ ["precinct", "npm:8.1.0"], ["commander", "npm:2.20.3"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["detective-amd", "npm:3.1.0"], ["detective-cjs", "npm:3.1.1"], ["detective-es6", "npm:2.2.0"], @@ -3378,7 +3378,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/resolve-patch-da1bf0dd3c-bed00be983.zip/node_modules/resolve/", "packageDependencies": [ ["resolve", "patch:resolve@npm%3A1.20.0#~builtin<compat/resolve>::version=1.20.0&hash=00b1ff"], - ["is-core-module", "npm:2.4.0"], + ["is-core-module", "npm:2.5.0"], ["path-parse", "npm:1.0.7"] ], "linkType": "HARD", @@ -3521,7 +3521,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/__virtual__/sequelize-virtual-3000a1f9db/0/cache/sequelize-npm-6.6.5-8aa6259255-31f80cdbcf.zip/node_modules/sequelize/", "packageDependencies": [ ["sequelize", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:6.6.5"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"], + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"], ["dottie", "npm:2.0.2"], ["inflection", "npm:1.13.1"], ["lodash", "npm:4.17.21"], @@ -3742,7 +3742,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [ ["stylus-lookup", "npm:3.0.2"], ["commander", "npm:2.20.3"], - ["debug", "virtual:f8b688e6542ef635eefae684748f7db5410cd1803b0f43b02ae3ebd860a79349e9ae07146ce05bdfb5fca9536ad9dbe230ed7f4c2f2ffe26893f1f1b0b8700e7#npm:4.3.2"] + ["debug", "virtual:ee1bbcab87c0701d4ea83dd18afa59b10c6343191c17b3a8e7844ecdde3ca8e8977791131460b822baae289e9261b3b228709bc45987d850e69091b4d363edfa#npm:4.3.2"] ], "linkType": "HARD", }] @@ -3770,7 +3770,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/table-npm-6.7.1-7d70e55c6d-053b61fa4e.zip/node_modules/table/", "packageDependencies": [ ["table", "npm:6.7.1"], - ["ajv", "npm:8.6.1"], + ["ajv", "npm:8.6.2"], ["lodash.clonedeep", "npm:4.5.0"], ["lodash.truncate", "npm:4.4.2"], ["slice-ansi", "npm:4.0.0"], @@ -3886,13 +3886,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "SOFT", }], - ["virtual:65784e659f47767d1bd70f01e96cacf8ae087d857ec65905ba3623b44fc5dc60d4e0d38c4dced9a8fcc2d8cdc8b727a71711606696c35af461b2684a9bbbf56a#npm:3.21.0", { - "packageLocation": "./.yarn/__virtual__/tsutils-virtual-06ea11ceef/0/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip/node_modules/tsutils/", + ["virtual:04151df1d074588ffaadc5bd67fbd7c2f5de2ed6fecf9ad92e4811865cd3caf44565bfa8eeb00048e50159a1b00ad6a30f4b7a79180dbe953d87deb9d655c419#npm:3.21.0", { + "packageLocation": "./.yarn/__virtual__/tsutils-virtual-9fbb07a9c2/0/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip/node_modules/tsutils/", "packageDependencies": [ - ["tsutils", "virtual:65784e659f47767d1bd70f01e96cacf8ae087d857ec65905ba3623b44fc5dc60d4e0d38c4dced9a8fcc2d8cdc8b727a71711606696c35af461b2684a9bbbf56a#npm:3.21.0"], + ["tsutils", "virtual:04151df1d074588ffaadc5bd67fbd7c2f5de2ed6fecf9ad92e4811865cd3caf44565bfa8eeb00048e50159a1b00ad6a30f4b7a79180dbe953d87deb9d655c419#npm:3.21.0"], ["@types/typescript", null], ["tslib", "npm:1.14.1"], - ["typescript", "patch:typescript@npm%3A4.2.4#~builtin<compat/typescript>::version=4.2.4&hash=d8b4e7"] + ["typescript", null] ], "packagePeers": [ "@types/typescript", @@ -3900,13 +3900,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "HARD", }], - ["virtual:dcb6da0364d12e543c9b52f997444d6b7da6d6c3322b9be6588495dc1850df8b13ee7b184f37572b11c5d04e7dbbbd18026c2d8dee73c33c06f4dc58e61e3600#npm:3.21.0", { - "packageLocation": "./.yarn/__virtual__/tsutils-virtual-26d74b8e7f/0/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip/node_modules/tsutils/", + ["virtual:48a90f2aa29447f8a23308932fb43239dc8b2cee79d43f9771e225b9f510f03dff55d9ea859d7640cdde639a07751a1228300dded053143c395e67291b6eaa6d#npm:3.21.0", { + "packageLocation": "./.yarn/__virtual__/tsutils-virtual-206f49111a/0/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip/node_modules/tsutils/", "packageDependencies": [ - ["tsutils", "virtual:dcb6da0364d12e543c9b52f997444d6b7da6d6c3322b9be6588495dc1850df8b13ee7b184f37572b11c5d04e7dbbbd18026c2d8dee73c33c06f4dc58e61e3600#npm:3.21.0"], + ["tsutils", "virtual:48a90f2aa29447f8a23308932fb43239dc8b2cee79d43f9771e225b9f510f03dff55d9ea859d7640cdde639a07751a1228300dded053143c395e67291b6eaa6d#npm:3.21.0"], ["@types/typescript", null], ["tslib", "npm:1.14.1"], - ["typescript", null] + ["typescript", "patch:typescript@npm%3A4.2.4#~builtin<compat/typescript>::version=4.2.4&hash=d8b4e7"] ], "packagePeers": [ "@types/typescript", @@ -3914,10 +3914,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "HARD", }], - ["virtual:e80cdc72e08c6e158b3fe27966e42eeafb0f16e195057b040b6c514670447c80dafe8fc16100d9b2f7bb32fe41bdf1e09babdd886e6cbab55d81f720d133e296#npm:3.21.0", { - "packageLocation": "./.yarn/__virtual__/tsutils-virtual-d7ec71a158/0/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip/node_modules/tsutils/", + ["virtual:e179742e770d7c10719c1360d60626aa38e5567a66ed3632d2b563a638c5ecc352df6a69dd20180ca019f1d703aa19f6e780b23c6e128d107b0fd25542aca63a#npm:3.21.0", { + "packageLocation": "./.yarn/__virtual__/tsutils-virtual-1cc0668f92/0/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip/node_modules/tsutils/", "packageDependencies": [ - ["tsutils", "virtual:e80cdc72e08c6e158b3fe27966e42eeafb0f16e195057b040b6c514670447c80dafe8fc16100d9b2f7bb32fe41bdf1e09babdd886e6cbab55d81f720d133e296#npm:3.21.0"], + ["tsutils", "virtual:e179742e770d7c10719c1360d60626aa38e5567a66ed3632d2b563a638c5ecc352df6a69dd20180ca019f1d703aa19f6e780b23c6e128d107b0fd25542aca63a#npm:3.21.0"], ["@types/typescript", null], ["tslib", "npm:1.14.1"], ["typescript", "patch:typescript@npm%3A3.9.10#~builtin<compat/typescript>::version=3.9.10&hash=d8b4e7"] @@ -4090,7 +4090,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./.yarn/cache/wkx-npm-0.5.0-fca5152cd8-47b27387de.zip/node_modules/wkx/", "packageDependencies": [ ["wkx", "npm:0.5.0"], - ["@types/node", "npm:16.3.1"] + ["@types/node", "npm:16.3.3"] ], "linkType": "HARD", }] diff --git a/src/commands/utilities/price.ts b/src/commands/utilities/price.ts index 231930c..a8cf127 100644 --- a/src/commands/utilities/price.ts +++ b/src/commands/utilities/price.ts @@ -1,7 +1,6 @@ import { Constants } from 'discord-akairo'; import { ColorResolvable, MessageEmbed } from 'discord.js'; import Fuse from 'fuse.js'; -import got from 'got'; import { BushCommand, BushMessage } from '../../lib'; interface Summary { @@ -98,22 +97,28 @@ export default class PriceCommand extends BushCommand { public async exec(message: BushMessage, { item, strict }: { item: string; strict: boolean }): Promise<unknown> { const errors = new Array<string>(); - const bazaar: Bazaar = await get('https://api.hypixel.net/skyblock/bazaar').catch(() => errors.push('bazaar')); - const currentLowestBIN: LowestBIN = await get('https://moulberry.codes/lowestbin.json').catch(() => - errors.push('current lowest BIN') - ); - const averageLowestBIN: LowestBIN = await get('https://moulberry.codes/auction_averages_lbin/3day.json').catch(() => - errors.push('average Lowest BIN') - ); - const auctionAverages: AuctionAverages = await get('https://moulberry.codes/auction_averages/3day.json').catch(() => - errors.push('auction average') - ); - // adds _ to item name + + const [bazaar, currentLowestBIN, averageLowestBIN, auctionAverages]: [Bazaar, LowestBIN, LowestBIN, AuctionAverages] = + await Promise.all([ + fetch('https://api.hypixel.net/skyblock/bazaar') + .then((resp) => resp.json()) + .catch(() => errors.push('bazaar')), + fetch('https://moulberry.codes/lowestbin.json') + .then((resp) => resp.json()) + .catch(() => errors.push('current lowest BIN')), + fetch('https://moulberry.codes/auction_averages_lbin/3day.json') + .then((resp) => resp.json()) + .catch(() => errors.push('average Lowest BIN')), + fetch('https://moulberry.codes/auction_averages/3day.json') + .then((resp) => resp.json()) + .catch(() => errors.push('auction average')) + ]); + let parsedItem = item.toString().toUpperCase().replace(/ /g, '_').replace(/'S/g, ''); const priceEmbed = new MessageEmbed(); if (errors?.length) { - priceEmbed.setFooter; + priceEmbed.setFooter(`Could not fetch data from ${this.client.util.oxford(errors, 'and', '')}`); } //combines all the item names from each @@ -201,20 +206,5 @@ export default class PriceCommand extends BushCommand { const a = Number(Number(price).toFixed(digits)); return commas ? a?.toLocaleString() : a?.toString(); } - - // eslint-disable-next-line @typescript-eslint/no-explicit-any - async function get(url: string): Promise<any> { - const data = await got.get(url).catch((error) => { - this.client.console.warn('PriceCommand', `There was an problem fetching data from <<${url}>> with error:\n${error}`); - throw 'Error Fetching price data'; - }); - try { - const json = JSON.parse(data.body); - return json; - } catch (error) { - this.client.console.warn('PriceCommand', `There was an problem parsing data from <<${url}>> with error:\n${error}`); - throw 'json error'; - } - } } } diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts index 17d3e11..66204ac 100644 --- a/src/lib/extensions/discord-akairo/BushClient.ts +++ b/src/lib/extensions/discord-akairo/BushClient.ts @@ -165,7 +165,7 @@ export class BushClient extends AkairoClient { prefix: async ({ guild }: { guild: Guild }) => { if (this.config.isDevelopment) return 'dev '; const row = await GuildModel.findByPk(guild.id); - return (row?.prefix || this.config.isBeta ? 'bush ' : this.config.prefix) as string; + return (row?.prefix ?? this.config.prefix) as string; }, allowMention: true, handleEdits: true, @@ -173,8 +173,8 @@ export class BushClient extends AkairoClient { commandUtilLifetime: 300_000, argumentDefaults: { prompt: { - start: 'Placeholder argument prompt. If you see this please tell the devs.', - retry: 'Placeholder failed argument prompt. If you see this please tell the devs.', + start: 'Placeholder argument prompt. If you see this please tell my developers.', + retry: 'Placeholder failed argument prompt. If you see this please tell my developers.', modifyStart: (_: Message, str: string): string => `${str}\n\n Type \`cancel\` to cancel the command`, modifyRetry: (_: Message, str: string): string => `${str.replace('{error}', this.util.emojis.error)}\n\n Type \`cancel\` to cancel the command`, @@ -192,17 +192,15 @@ export class BushClient extends AkairoClient { }); this.util = new BushClientUtil(this); - this.db = new Sequelize( - this.config.isDevelopment ? 'bushbot-dev' : 'bushbot', - this.config.db.username, - this.config.db.password, - { - dialect: 'postgres', - host: this.config.db.host, - port: this.config.db.port, - logging: this.config.logging.db ? (sql) => this.logger.debug(sql) : false - } - ); + this.db = new Sequelize({ + database: this.config.isDevelopment ? 'bushbot-dev' : 'bushbot', + username: this.config.db.username, + password: this.config.db.password, + dialect: 'postgres', + host: this.config.db.host, + port: this.config.db.port, + logging: this.config.logging.db ? (sql) => this.logger.debug(sql) : false + }); this.logger = new BushLogger(this); } diff --git a/src/listeners/other/uncaughtException.ts b/src/listeners/other/uncaughtException.ts new file mode 100644 index 0000000..91d0a56 --- /dev/null +++ b/src/listeners/other/uncaughtException.ts @@ -0,0 +1,23 @@ +import { BushListener } from '@lib'; + +export default class UncaughtExceptionListener extends BushListener { + public constructor() { + super('uncaughtException', { + emitter: 'process', + event: 'uncaughtException' + }); + } + + public async exec(error: Error): Promise<void> { + this.client.console.error('uncaughtException', `An uncaught exception occurred:\n${error?.stack || error}`, false); + this.client.console.channelError({ + embeds: [ + { + title: 'An uncaught exception occurred', + fields: [{ name: 'error', value: await this.client.util.codeblock(`${error?.stack || error}`, 1024, 'js') }], + color: this.client.util.colors.error + } + ] + }); + } +} @@ -92,9 +92,9 @@ __metadata: languageName: node linkType: hard -"@eslint/eslintrc@npm:^0.4.2": - version: 0.4.2 - resolution: "@eslint/eslintrc@npm:0.4.2" +"@eslint/eslintrc@npm:^0.4.3": + version: 0.4.3 + resolution: "@eslint/eslintrc@npm:0.4.3" dependencies: ajv: ^6.12.4 debug: ^4.1.1 @@ -105,7 +105,7 @@ __metadata: js-yaml: ^3.13.1 minimatch: ^3.0.4 strip-json-comments: ^3.1.1 - checksum: 17f90cf07988dd2a5e4f510687c81334141977b8e0fa1b63ef0318b0578466e368fc988c101ddc7df55b6124dff8ecd1be67292c27901265761758ad22608e12 + checksum: 03a7704150b868c318aab6a94d87a33d30dc2ec579d27374575014f06237ba1370ae11178db772f985ef680d469dc237e7b16a1c5d8edaaeb8c3733e7a95a6d3 languageName: node linkType: hard @@ -169,11 +169,11 @@ __metadata: linkType: hard "@szmarczak/http-timer@npm:^4.0.5": - version: 4.0.5 - resolution: "@szmarczak/http-timer@npm:4.0.5" + version: 4.0.6 + resolution: "@szmarczak/http-timer@npm:4.0.6" dependencies: defer-to-connect: ^2.0.0 - checksum: 27b713859bc7d370f81631eea99879a9d496e1def5d33752fccd6c80dba32cde2094f378c8d07d56f236b08afb4b3621fbf6254faaca52b1a8146ece1eba8428 + checksum: c29df3bcec6fc3bdec2b17981d89d9c9fc9bd7d0c9bcfe92821dc533f4440bc890ccde79971838b4ceed1921d456973c4180d7175ee1d0023ad0562240a58d95 languageName: node linkType: hard @@ -283,9 +283,9 @@ __metadata: linkType: hard "@types/node@npm:*": - version: 16.3.1 - resolution: "@types/node@npm:16.3.1" - checksum: 2a9d69db32540157827a06893a80dcbc9c86a6287dace38e1ff27490f34ec4b4164426165f2c4146c412eca451bf1b782be17d5ce57a935b1fd1e7c5fae89f43 + version: 16.3.3 + resolution: "@types/node@npm:16.3.3" + checksum: fa885b835e57a4a2fd15571e5cbfe361d4ac48278196416aa2690ebdfb118a116249dd81475078c61fbf2d95920324f8f3a66ae7f19fac424ae74ab87a41c1e4 languageName: node linkType: hard @@ -353,11 +353,11 @@ __metadata: linkType: hard "@typescript-eslint/eslint-plugin@npm:^4.14.1": - version: 4.28.2 - resolution: "@typescript-eslint/eslint-plugin@npm:4.28.2" + version: 4.28.3 + resolution: "@typescript-eslint/eslint-plugin@npm:4.28.3" dependencies: - "@typescript-eslint/experimental-utils": 4.28.2 - "@typescript-eslint/scope-manager": 4.28.2 + "@typescript-eslint/experimental-utils": 4.28.3 + "@typescript-eslint/scope-manager": 4.28.3 debug: ^4.3.1 functional-red-black-tree: ^1.0.1 regexpp: ^3.1.0 @@ -369,66 +369,66 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 279af7f5cd6eea6cbc9a725fee98c99b18160ef3d8c2185c36438ce4e7b9688127e9c5cb410f9fc49936f3a0165959fd3aad35be8045630413b67efe05d81fe2 + checksum: 2ac7113dbb0916ee911c3cee552b31b82c3c286ce4be1d2b5b8fbbe64eb05eb8c5187a64aba2fc5d46f2bc2d391887b33e00edbb65f2f25f41342efa346776ef languageName: node linkType: hard -"@typescript-eslint/experimental-utils@npm:4.28.2": - version: 4.28.2 - resolution: "@typescript-eslint/experimental-utils@npm:4.28.2" +"@typescript-eslint/experimental-utils@npm:4.28.3": + version: 4.28.3 + resolution: "@typescript-eslint/experimental-utils@npm:4.28.3" dependencies: "@types/json-schema": ^7.0.7 - "@typescript-eslint/scope-manager": 4.28.2 - "@typescript-eslint/types": 4.28.2 - "@typescript-eslint/typescript-estree": 4.28.2 + "@typescript-eslint/scope-manager": 4.28.3 + "@typescript-eslint/types": 4.28.3 + "@typescript-eslint/typescript-estree": 4.28.3 eslint-scope: ^5.1.1 eslint-utils: ^3.0.0 peerDependencies: eslint: "*" - checksum: 5b4159d4ebb01fb1c17beda953e0678667ec3ea361604bf74f0e057c892269a3a12ea1e94948a37f790029f0ca38d6be86d56e70ac6e608c90e1e191a89d3e7f + checksum: 09b1b196318acbf6efbb9ea93fc73b18a77c1fc04efb24bc77d941666b5a0c48828f2d788079bdfd340828045d15054a4c95fba5367e7c8b1fe53de53736a1db languageName: node linkType: hard "@typescript-eslint/parser@npm:^4.14.1": - version: 4.28.2 - resolution: "@typescript-eslint/parser@npm:4.28.2" + version: 4.28.3 + resolution: "@typescript-eslint/parser@npm:4.28.3" dependencies: - "@typescript-eslint/scope-manager": 4.28.2 - "@typescript-eslint/types": 4.28.2 - "@typescript-eslint/typescript-estree": 4.28.2 + "@typescript-eslint/scope-manager": 4.28.3 + "@typescript-eslint/types": 4.28.3 + "@typescript-eslint/typescript-estree": 4.28.3 debug: ^4.3.1 peerDependencies: eslint: ^5.0.0 || ^6.0.0 || ^7.0.0 peerDependenciesMeta: typescript: optional: true - checksum: dd5ed206528e514239b81f2b7b218c27516988c12e0577a140389802ce1f7e8eb69187430266ff4621048ce4f0fe6db2a1e42b5bde672e0d6edd820ceb9a3c36 + checksum: 3a5d64237e7085235f3b27eece73105bd5a7b51f17c868c086a6062bd8ab6901c908270d41c055f44d9f440c6a1bb3203429693a07436905cc60d3a03cd361e9 languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:4.28.2": - version: 4.28.2 - resolution: "@typescript-eslint/scope-manager@npm:4.28.2" +"@typescript-eslint/scope-manager@npm:4.28.3": + version: 4.28.3 + resolution: "@typescript-eslint/scope-manager@npm:4.28.3" dependencies: - "@typescript-eslint/types": 4.28.2 - "@typescript-eslint/visitor-keys": 4.28.2 - checksum: 4422e6a1971a93f9092877624d7656d0fe35ce8992b1609fb3c16a260400633a59623adb7ce2fa5fb189ef90d86e6293b6915ee8b94fdd30554c4c9c66469da9 + "@typescript-eslint/types": 4.28.3 + "@typescript-eslint/visitor-keys": 4.28.3 + checksum: 9ffb955581311ef46d7aebf23ac544c96164bac00f7657f963680ba7b239b1c021733318ea22ca2965ff9b8f2798dff8ae5d7add0dae4207d3dad86d5e4f0f1f languageName: node linkType: hard -"@typescript-eslint/types@npm:4.28.2": - version: 4.28.2 - resolution: "@typescript-eslint/types@npm:4.28.2" - checksum: 3e03777bb4a65a26b0f2d92d1d56834cbfed85d6f1f2ef6cbbb22f524ce5fc113f24ec5aa2e4ea2aedefa9b170167e64a9a998e23916953058c97a7310b01394 +"@typescript-eslint/types@npm:4.28.3": + version: 4.28.3 + resolution: "@typescript-eslint/types@npm:4.28.3" + checksum: 15f052f92ee429056e7bdd4b0ff3750d72a6ab6c202a46f394dcd7490da7f670d7b516fc5febc96332cced39fdf3fd20c4893ee58fb93ce9b58e2f1e1766d7bb languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:4.28.2, @typescript-eslint/typescript-estree@npm:^4.8.2": - version: 4.28.2 - resolution: "@typescript-eslint/typescript-estree@npm:4.28.2" +"@typescript-eslint/typescript-estree@npm:4.28.3, @typescript-eslint/typescript-estree@npm:^4.8.2": + version: 4.28.3 + resolution: "@typescript-eslint/typescript-estree@npm:4.28.3" dependencies: - "@typescript-eslint/types": 4.28.2 - "@typescript-eslint/visitor-keys": 4.28.2 + "@typescript-eslint/types": 4.28.3 + "@typescript-eslint/visitor-keys": 4.28.3 debug: ^4.3.1 globby: ^11.0.3 is-glob: ^4.0.1 @@ -437,17 +437,17 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: b098c01cf29eb4f9a069d6fd05fdba08abddf888314f6aaace052bb8e4d867244b9029aff60060e1d237f00151bf55205c7ed2b9f36e0d3b661fc442cf6225d2 + checksum: 674cdd5e3c24306f906d6479ede454d5f5a2100e22cd5aa08f9bc27953cdb4930384ad3b4434937e31e8e92e6b3cc867f8d56c3b65e2254f7042662deafef583 languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:4.28.2": - version: 4.28.2 - resolution: "@typescript-eslint/visitor-keys@npm:4.28.2" +"@typescript-eslint/visitor-keys@npm:4.28.3": + version: 4.28.3 + resolution: "@typescript-eslint/visitor-keys@npm:4.28.3" dependencies: - "@typescript-eslint/types": 4.28.2 + "@typescript-eslint/types": 4.28.3 eslint-visitor-keys: ^2.0.0 - checksum: 91610c6948c9ace009acd9b2894d194c977c5d15dab9a68f3f71090988c1d0b3442a60ad7119c865dbb5f36af50726e3245c86d557e01481feeda80e5f474687 + checksum: b570740ae16901df85febde13b5e34b95dfa13fc51b035875bc087fef356f2db1284ff045812ace06b0e8f821171a7ddaf7606cee672d35df486989e79a0c7df languageName: node linkType: hard @@ -491,14 +491,14 @@ __metadata: linkType: hard "ajv@npm:^8.0.1": - version: 8.6.1 - resolution: "ajv@npm:8.6.1" + version: 8.6.2 + resolution: "ajv@npm:8.6.2" dependencies: fast-deep-equal: ^3.1.1 json-schema-traverse: ^1.0.0 require-from-string: ^2.0.2 uri-js: ^4.2.2 - checksum: e091264ff6c8134d9072e804f6f1d56e8dacc143537852d9afb456f0bb6c4eff98307e152da2faf7afef2ebf665278316aa5cf30f7d81ccecc9654c11629e2a6 + checksum: b86d6cb86c69abbd8ce71ab7d4ff272660bf6d34fa9fbe770f73e54da59d531b2546692e36e2b35bbcfb11d20db774b4c09189671335185b8c799d65194e5169 languageName: node linkType: hard @@ -1126,8 +1126,8 @@ __metadata: discord-akairo@NotEnoughUpdates/discord-akairo: version: 8.2.2 - resolution: "discord-akairo@https://github.com/NotEnoughUpdates/discord-akairo.git#commit=65d760faed662e816ced3ba8ae7520e513e37ee2" - checksum: 03dd29e28656a3a4665f82330daa8a5cd9b13a9fc2847df6f239d6e7da5c707cbfa58cbe2e4dd986215ab78507fe89d2a126b21872d7d3b54ecf1aa7a572db55 + resolution: "discord-akairo@https://github.com/NotEnoughUpdates/discord-akairo.git#commit=7164ae3af00266b0ac357e3e65ef5d4101308c40" + checksum: 63a85f0de4d018b83ecd537b42dadafdc471d90c67559281ea8e202527f4b11eef6a1b88cb43b229e883f9ed52041994df7a5653077ba8e3dae6bf8fea1c9c75 languageName: node linkType: hard @@ -1154,7 +1154,7 @@ discord-akairo@NotEnoughUpdates/discord-akairo: discord.js@NotEnoughUpdates/discord.js: version: 13.0.0-dev - resolution: "discord.js@https://github.com/NotEnoughUpdates/discord.js.git#commit=20c84839fa43aad6c47ff6ffb11b34cc785e920b" + resolution: "discord.js@https://github.com/NotEnoughUpdates/discord.js.git#commit=8551402ddbac89a53133385f953c595e8be16d98" dependencies: "@discordjs/builders": ^0.2.0 "@discordjs/collection": ^0.1.6 @@ -1165,7 +1165,7 @@ discord.js@NotEnoughUpdates/discord.js: discord-api-types: ^0.19.0-next.f393ba520d7d6d2aacaca7b3ca5d355fab614f6e node-fetch: ^2.6.1 ws: ^7.5.1 - checksum: 1d6f87e67ff077d5986e1df125b03416f236be81841641629c4b7f4ac17807270667d9d7b3fe3b91051de0a062105a10569558c5462879dfebc26fc65600ea91 + checksum: f5a41b02faa95d7d5efafd734c8af9b063badcce257fe87c3399fcafab083026ba2334793d46d01553670cd57081a4650c68a6c05a417bf2640591b05c54f82c languageName: node linkType: hard @@ -1325,11 +1325,11 @@ discord.js@NotEnoughUpdates/discord.js: linkType: hard "eslint@npm:^7.29.0": - version: 7.30.0 - resolution: "eslint@npm:7.30.0" + version: 7.31.0 + resolution: "eslint@npm:7.31.0" dependencies: "@babel/code-frame": 7.12.11 - "@eslint/eslintrc": ^0.4.2 + "@eslint/eslintrc": ^0.4.3 "@humanwhocodes/config-array": ^0.5.0 ajv: ^6.10.0 chalk: ^4.0.0 @@ -1370,7 +1370,7 @@ discord.js@NotEnoughUpdates/discord.js: v8-compile-cache: ^2.0.3 bin: eslint: bin/eslint.js - checksum: 872f90844b164dd61ec1bb949d2e33e7fbd189e0652fabe2cbbd0bdce1e4cd7ed08e72fa213795a453ae39fe24460771800608e765febb9e778deb28b9db3cc1 + checksum: fd73d07ce0b73e5ea950b295a6eaf8d45914b4e56cba4ef49e55a36dc7e965a4865f63f618c0a096a01d089752d9e44180b80ba8657039b8e631dd40e0af1663 languageName: node linkType: hard @@ -1848,11 +1848,11 @@ discord.js@NotEnoughUpdates/discord.js: linkType: hard "is-core-module@npm:^2.2.0": - version: 2.4.0 - resolution: "is-core-module@npm:2.4.0" + version: 2.5.0 + resolution: "is-core-module@npm:2.5.0" dependencies: has: ^1.0.3 - checksum: c498902d4c4d0e8eba3a2e8293ccd442158cfe49a71d7cfad136ccf9902b6a41de34ddaa86cdc95c8b7c22f872e59572d8a5d994cbec04c8ecf27ffe75137119 + checksum: e007de6ca5c391f8a669b9335192967d8815f9119f97d81fc4cde07febe09143263bc0146e86e813120223ea9a034cf0608d15b53b0269e19b4dc0a220ce0b4f languageName: node linkType: hard |