Properly ack Select Image requests, add client key to Tenor request, update packages

This commit is contained in:
Essem 2022-12-12 11:07:58 -06:00
parent b9d38bc2bb
commit 345b525188
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
5 changed files with 171 additions and 132 deletions

1
app.js
View file

@ -42,6 +42,7 @@ import { parseThreshold } from "./utils/tempimages.js";
const { types } = JSON.parse(readFileSync(new URL("./config/commands.json", import.meta.url)));
const esmBotVersion = JSON.parse(readFileSync(new URL("./package.json", import.meta.url))).version;
process.env.ESMBOT_VER = esmBotVersion;
const intents = [
"GUILD_VOICE_STATES",

View file

@ -4,6 +4,7 @@ import { selectedImages } from "../../utils/collections.js";
class SelectImageCommand extends Command {
async run() {
await this.acknowledge();
const message = this.interaction.data.target;
const image = await imageDetect(this.client, message, this.interaction, this.options, true, false, false, true);
this.success = false;

View file

@ -34,25 +34,25 @@
"jsqr": "^1.4.0",
"node-addon-api": "^5.0.0",
"node-emoji": "^1.11.0",
"oceanic.js": "1.3.1",
"oceanic.js": "1.3.2",
"qrcode": "^1.5.1",
"sharp": "^0.31.2",
"shoukaku": "^3.2.2",
"undici": "^5.13.0",
"undici": "^5.14.0",
"winston": "^3.8.2",
"winston-daily-rotate-file": "^4.7.1"
},
"devDependencies": {
"@babel/core": "^7.20.2",
"@babel/core": "^7.20.5",
"@babel/eslint-parser": "^7.19.1",
"@babel/eslint-plugin": "^7.19.1",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"cmake-js": "^7.0.0",
"eslint": "^8.28.0",
"eslint-plugin-unicorn": "^44.0.2"
"eslint": "^8.29.0",
"eslint-plugin-unicorn": "^45.0.2"
},
"optionalDependencies": {
"better-sqlite3": "^7.6.2",
"better-sqlite3": "^8.0.1",
"bufferutil": "^4.0.7",
"erlpack": "^0.1.4",
"pm2": "^5.2.2",

View file

@ -1,30 +1,30 @@
lockfileVersion: 5.4
specifiers:
'@babel/core': ^7.20.2
'@babel/core': ^7.20.5
'@babel/eslint-parser': ^7.19.1
'@babel/eslint-plugin': ^7.19.1
'@babel/plugin-proposal-class-properties': ^7.18.6
better-sqlite3: ^7.6.2
better-sqlite3: ^8.0.1
bufferutil: ^4.0.7
cmake-js: ^7.0.0
dotenv: ^16.0.3
emoji-regex: ^10.2.1
erlpack: ^0.1.4
eslint: ^8.28.0
eslint-plugin-unicorn: ^44.0.2
eslint: ^8.29.0
eslint-plugin-unicorn: ^45.0.2
file-type: ^18.0.0
format-duration: ^2.0.0
jsqr: ^1.4.0
node-addon-api: ^5.0.0
node-emoji: ^1.11.0
oceanic.js: 1.3.1
oceanic.js: 1.3.2
pm2: ^5.2.2
postgres: ^3.3.2
qrcode: ^1.5.1
sharp: ^0.31.2
shoukaku: ^3.2.2
undici: ^5.13.0
undici: ^5.14.0
uuid: ^9.0.0
winston: ^3.8.2
winston-daily-rotate-file: ^4.7.1
@ -39,16 +39,16 @@ dependencies:
jsqr: 1.4.0
node-addon-api: 5.0.0
node-emoji: 1.11.0
oceanic.js: 1.3.1_bufferutil@4.0.7
oceanic.js: 1.3.2_bufferutil@4.0.7
qrcode: 1.5.1
sharp: 0.31.2
shoukaku: 3.2.2_bufferutil@4.0.7
undici: 5.13.0
undici: 5.14.0
winston: 3.8.2
winston-daily-rotate-file: 4.7.1_winston@3.8.2
optionalDependencies:
better-sqlite3: 7.6.2
better-sqlite3: 8.0.1
bufferutil: 4.0.7
erlpack: 0.1.4
pm2: 5.2.2_bufferutil@4.0.7
@ -58,13 +58,13 @@ optionalDependencies:
zlib-sync: 0.1.7
devDependencies:
'@babel/core': 7.20.2
'@babel/eslint-parser': 7.19.1_ustmoyzvfgos66cf2wvsplsloa
'@babel/eslint-plugin': 7.19.1_qo7nbvejrlukndoriyrzp32xfy
'@babel/plugin-proposal-class-properties': 7.18.6_@babel+core@7.20.2
'@babel/core': 7.20.5
'@babel/eslint-parser': 7.19.1_xthtwe2nrrwct2fnasddpvoro4
'@babel/eslint-plugin': 7.19.1_iw4s3en7fyyxs2py43hgzzlham
'@babel/plugin-proposal-class-properties': 7.18.6_@babel+core@7.20.5
cmake-js: 7.0.0
eslint: 8.28.0
eslint-plugin-unicorn: 44.0.2_eslint@8.28.0
eslint: 8.29.0
eslint-plugin-unicorn: 45.0.2_eslint@8.29.0
packages:
@ -83,25 +83,25 @@ packages:
'@babel/highlight': 7.18.6
dev: true
/@babel/compat-data/7.20.1:
resolution: {integrity: sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ==}
/@babel/compat-data/7.20.5:
resolution: {integrity: sha512-KZXo2t10+/jxmkhNXc7pZTqRvSOIvVv/+lJwHS+B2rErwOyjuVRh60yVpb7liQ1U5t7lLJ1bz+t8tSypUZdm0g==}
engines: {node: '>=6.9.0'}
dev: true
/@babel/core/7.20.2:
resolution: {integrity: sha512-w7DbG8DtMrJcFOi4VrLm+8QM4az8Mo+PuLBKLp2zrYRCow8W/f9xiXm5sN53C8HksCyDQwCKha9JiDoIyPjT2g==}
/@babel/core/7.20.5:
resolution: {integrity: sha512-UdOWmk4pNWTm/4DlPUl/Pt4Gz4rcEMb7CY0Y3eJl5Yz1vI8ZJGmHWaVE55LoxRjdpx0z259GE9U5STA9atUinQ==}
engines: {node: '>=6.9.0'}
dependencies:
'@ampproject/remapping': 2.2.0
'@babel/code-frame': 7.18.6
'@babel/generator': 7.20.4
'@babel/helper-compilation-targets': 7.20.0_@babel+core@7.20.2
'@babel/generator': 7.20.5
'@babel/helper-compilation-targets': 7.20.0_@babel+core@7.20.5
'@babel/helper-module-transforms': 7.20.2
'@babel/helpers': 7.20.1
'@babel/parser': 7.20.3
'@babel/helpers': 7.20.6
'@babel/parser': 7.20.5
'@babel/template': 7.18.10
'@babel/traverse': 7.20.1
'@babel/types': 7.20.2
'@babel/traverse': 7.20.5
'@babel/types': 7.20.5
convert-source-map: 1.9.0
debug: 4.3.4
gensync: 1.0.0-beta.2
@ -111,37 +111,37 @@ packages:
- supports-color
dev: true
/@babel/eslint-parser/7.19.1_ustmoyzvfgos66cf2wvsplsloa:
/@babel/eslint-parser/7.19.1_xthtwe2nrrwct2fnasddpvoro4:
resolution: {integrity: sha512-AqNf2QWt1rtu2/1rLswy6CDP7H9Oh3mMhk177Y67Rg8d7RD9WfOLLv8CGn6tisFvS2htm86yIe1yLF6I1UDaGQ==}
engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0}
peerDependencies:
'@babel/core': '>=7.11.0'
eslint: ^7.5.0 || ^8.0.0
dependencies:
'@babel/core': 7.20.2
'@babel/core': 7.20.5
'@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1
eslint: 8.28.0
eslint: 8.29.0
eslint-visitor-keys: 2.1.0
semver: 6.3.0
dev: true
/@babel/eslint-plugin/7.19.1_qo7nbvejrlukndoriyrzp32xfy:
/@babel/eslint-plugin/7.19.1_iw4s3en7fyyxs2py43hgzzlham:
resolution: {integrity: sha512-ElGPkQPapKMa3zVqXHkZYzuL7I5LbRw9UWBUArgWsdWDDb9XcACqOpBib5tRPA9XvbVZYrFUkoQPbiJ4BFvu4w==}
engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0}
peerDependencies:
'@babel/eslint-parser': '>=7.11.0'
eslint: '>=7.5.0'
dependencies:
'@babel/eslint-parser': 7.19.1_ustmoyzvfgos66cf2wvsplsloa
eslint: 8.28.0
'@babel/eslint-parser': 7.19.1_xthtwe2nrrwct2fnasddpvoro4
eslint: 8.29.0
eslint-rule-composer: 0.3.0
dev: true
/@babel/generator/7.20.4:
resolution: {integrity: sha512-luCf7yk/cm7yab6CAW1aiFnmEfBJplb/JojV56MYEK7ziWfGmFlTfmL9Ehwfy4gFhbjBfWO1wj7/TuSbVNEEtA==}
/@babel/generator/7.20.5:
resolution: {integrity: sha512-jl7JY2Ykn9S0yj4DQP82sYvPU+T3g0HFcWTqDLqiuA9tGRNIj9VfbtXGAYTTkyNEnQk1jkMGOdYka8aG/lulCA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.20.2
'@babel/types': 7.20.5
'@jridgewell/gen-mapping': 0.3.2
jsesc: 2.5.2
dev: true
@ -150,29 +150,29 @@ packages:
resolution: {integrity: sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.20.2
'@babel/types': 7.20.5
dev: true
/@babel/helper-compilation-targets/7.20.0_@babel+core@7.20.2:
/@babel/helper-compilation-targets/7.20.0_@babel+core@7.20.5:
resolution: {integrity: sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
'@babel/compat-data': 7.20.1
'@babel/core': 7.20.2
'@babel/compat-data': 7.20.5
'@babel/core': 7.20.5
'@babel/helper-validator-option': 7.18.6
browserslist: 4.21.4
semver: 6.3.0
dev: true
/@babel/helper-create-class-features-plugin/7.20.2_@babel+core@7.20.2:
resolution: {integrity: sha512-k22GoYRAHPYr9I+Gvy2ZQlAe5mGy8BqWst2wRt8cwIufWTxrsVshhIBvYNqC80N0GSFWTsqRVexOtfzlgOEDvA==}
/@babel/helper-create-class-features-plugin/7.20.5_@babel+core@7.20.5:
resolution: {integrity: sha512-3RCdA/EmEaikrhayahwToF0fpweU/8o2p8vhc1c/1kftHOdTKuC65kik/TLc+qfbS8JKw4qqJbne4ovICDhmww==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
dependencies:
'@babel/core': 7.20.2
'@babel/core': 7.20.5
'@babel/helper-annotate-as-pure': 7.18.6
'@babel/helper-environment-visitor': 7.18.9
'@babel/helper-function-name': 7.19.0
@ -194,28 +194,28 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/template': 7.18.10
'@babel/types': 7.20.2
'@babel/types': 7.20.5
dev: true
/@babel/helper-hoist-variables/7.18.6:
resolution: {integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.20.2
'@babel/types': 7.20.5
dev: true
/@babel/helper-member-expression-to-functions/7.18.9:
resolution: {integrity: sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.20.2
'@babel/types': 7.20.5
dev: true
/@babel/helper-module-imports/7.18.6:
resolution: {integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.20.2
'@babel/types': 7.20.5
dev: true
/@babel/helper-module-transforms/7.20.2:
@ -228,8 +228,8 @@ packages:
'@babel/helper-split-export-declaration': 7.18.6
'@babel/helper-validator-identifier': 7.19.1
'@babel/template': 7.18.10
'@babel/traverse': 7.20.1
'@babel/types': 7.20.2
'@babel/traverse': 7.20.5
'@babel/types': 7.20.5
transitivePeerDependencies:
- supports-color
dev: true
@ -238,7 +238,7 @@ packages:
resolution: {integrity: sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.20.2
'@babel/types': 7.20.5
dev: true
/@babel/helper-plugin-utils/7.20.2:
@ -253,8 +253,8 @@ packages:
'@babel/helper-environment-visitor': 7.18.9
'@babel/helper-member-expression-to-functions': 7.18.9
'@babel/helper-optimise-call-expression': 7.18.6
'@babel/traverse': 7.20.1
'@babel/types': 7.20.2
'@babel/traverse': 7.20.5
'@babel/types': 7.20.5
transitivePeerDependencies:
- supports-color
dev: true
@ -263,14 +263,14 @@ packages:
resolution: {integrity: sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.20.2
'@babel/types': 7.20.5
dev: true
/@babel/helper-split-export-declaration/7.18.6:
resolution: {integrity: sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.20.2
'@babel/types': 7.20.5
dev: true
/@babel/helper-string-parser/7.19.4:
@ -288,13 +288,13 @@ packages:
engines: {node: '>=6.9.0'}
dev: true
/@babel/helpers/7.20.1:
resolution: {integrity: sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg==}
/@babel/helpers/7.20.6:
resolution: {integrity: sha512-Pf/OjgfgFRW5bApskEz5pvidpim7tEDPlFtKcNRXWmfHGn9IEI2W2flqRQXTFb7gIPTyK++N6rVHuwKut4XK6w==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/template': 7.18.10
'@babel/traverse': 7.20.1
'@babel/types': 7.20.2
'@babel/traverse': 7.20.5
'@babel/types': 7.20.5
transitivePeerDependencies:
- supports-color
dev: true
@ -308,22 +308,22 @@ packages:
js-tokens: 4.0.0
dev: true
/@babel/parser/7.20.3:
resolution: {integrity: sha512-OP/s5a94frIPXwjzEcv5S/tpQfc6XhxYUnmWpgdqMWGgYCuErA3SzozaRAMQgSZWKeTJxht9aWAkUY+0UzvOFg==}
/@babel/parser/7.20.5:
resolution: {integrity: sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA==}
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
'@babel/types': 7.20.2
'@babel/types': 7.20.5
dev: true
/@babel/plugin-proposal-class-properties/7.18.6_@babel+core@7.20.2:
/@babel/plugin-proposal-class-properties/7.18.6_@babel+core@7.20.5:
resolution: {integrity: sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.20.2
'@babel/helper-create-class-features-plugin': 7.20.2_@babel+core@7.20.2
'@babel/core': 7.20.5
'@babel/helper-create-class-features-plugin': 7.20.5_@babel+core@7.20.5
'@babel/helper-plugin-utils': 7.20.2
transitivePeerDependencies:
- supports-color
@ -334,30 +334,30 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.18.6
'@babel/parser': 7.20.3
'@babel/types': 7.20.2
'@babel/parser': 7.20.5
'@babel/types': 7.20.5
dev: true
/@babel/traverse/7.20.1:
resolution: {integrity: sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==}
/@babel/traverse/7.20.5:
resolution: {integrity: sha512-WM5ZNN3JITQIq9tFZaw1ojLU3WgWdtkxnhM1AegMS+PvHjkM5IXjmYEGY7yukz5XS4sJyEf2VzWjI8uAavhxBQ==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.18.6
'@babel/generator': 7.20.4
'@babel/generator': 7.20.5
'@babel/helper-environment-visitor': 7.18.9
'@babel/helper-function-name': 7.19.0
'@babel/helper-hoist-variables': 7.18.6
'@babel/helper-split-export-declaration': 7.18.6
'@babel/parser': 7.20.3
'@babel/types': 7.20.2
'@babel/parser': 7.20.5
'@babel/types': 7.20.5
debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
- supports-color
dev: true
/@babel/types/7.20.2:
resolution: {integrity: sha512-FnnvsNWgZCr232sqtXggapvlkk/tuwR/qhGzcmxI0GXLCjmPYQPzio2FbdlWuY6y1sHFfQKk+rRbUZ9VStQMog==}
/@babel/types/7.20.5:
resolution: {integrity: sha512-c9fst/h2/dcF7H+MJKZ2T0KjEQ8hY/BNnDk/H3XY8C4Aw/eWQXWn/lWntHF9ooUBnGmEvbfGrTgLWc+um0YDUg==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-string-parser': 7.19.4
@ -384,7 +384,7 @@ packages:
requiresBuild: true
dependencies:
'@types/ws': 8.5.3
discord-api-types: 0.37.20
discord-api-types: 0.37.22
prism-media: 1.3.4
tslib: 2.4.1
ws: 8.11.0_bufferutil@4.0.7
@ -398,6 +398,16 @@ packages:
dev: false
optional: true
/@eslint-community/eslint-utils/4.1.2_eslint@8.29.0:
resolution: {integrity: sha512-7qELuQWWjVDdVsFQ5+beUl+KPczrEDA7S3zM4QUd/bJl7oXgsmpXaEVqrRTnOBqenOV4rWf2kVZk2Ot085zPWA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
dependencies:
eslint: 8.29.0
eslint-visitor-keys: 3.3.0
dev: true
/@eslint/eslintrc/1.3.3:
resolution: {integrity: sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@ -405,8 +415,8 @@ packages:
ajv: 6.12.6
debug: 4.3.4
espree: 9.4.1
globals: 13.18.0
ignore: 5.2.0
globals: 13.19.0
ignore: 5.2.1
import-fresh: 3.3.0
js-yaml: 4.1.0
minimatch: 3.1.2
@ -497,7 +507,7 @@ packages:
engines: {node: '>= 8'}
dependencies:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.13.0
fastq: 1.14.0
dev: true
/@opencensus/core/0.0.8:
@ -610,8 +620,8 @@ packages:
dev: false
optional: true
/@types/node/18.11.9:
resolution: {integrity: sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==}
/@types/node/18.11.13:
resolution: {integrity: sha512-IASpMGVcWpUsx5xBOrxMj7Bl8lqfuTY7FKAnPmu5cHkfQVWF8GulWS1jbRqA934qZL35xh5xN/+Xe/i26Bod4w==}
dev: false
optional: true
@ -622,7 +632,7 @@ packages:
/@types/ws/8.5.3:
resolution: {integrity: sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==}
dependencies:
'@types/node': 18.11.9
'@types/node': 18.11.13
dev: false
optional: true
@ -788,8 +798,8 @@ packages:
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
dev: false
/better-sqlite3/7.6.2:
resolution: {integrity: sha512-S5zIU1Hink2AH4xPsN0W43T1/AJ5jrPh7Oy07ocuW/AKYYY02GWzz9NH0nbSMn/gw6fDZ5jZ1QsHt1BXAwJ6Lg==}
/better-sqlite3/8.0.1:
resolution: {integrity: sha512-JhTZjpyapA1icCEjIZB4TSSgkGdFgpWZA2Wszg7Cf4JwJwKQmbvuNnJBeR+EYG/Z29OXvR4G//Rbg31BW/Z7Yg==}
requiresBuild: true
dependencies:
bindings: 1.5.0
@ -849,7 +859,7 @@ packages:
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
dependencies:
caniuse-lite: 1.0.30001434
caniuse-lite: 1.0.30001439
electron-to-chromium: 1.4.284
node-releases: 2.0.6
update-browserslist-db: 1.0.10_browserslist@4.21.4
@ -903,8 +913,8 @@ packages:
engines: {node: '>=6'}
dev: false
/caniuse-lite/1.0.30001434:
resolution: {integrity: sha512-aOBHrLmTQw//WFa2rcF1If9fa3ypkC1wzqqiKHgfdrXTWcU8C4gKVZT77eQAPWN1APys3+uQ0Df07rKauXGEYA==}
/caniuse-lite/1.0.30001439:
resolution: {integrity: sha512-1MgUzEkoMO6gKfXflStpYgZDlFM7M/ck/bgfVCACO5vnAf0fXoNVHdWtqGU+MYca+4bL9Z5bpOVmR33cWW9G2A==}
dev: true
/chalk/2.4.2:
@ -1014,7 +1024,7 @@ packages:
npmlog: 6.0.2
rc: 1.2.8
semver: 7.3.8
tar: 6.1.12
tar: 6.1.13
url-join: 4.0.1
which: 2.0.2
yargs: 17.6.2
@ -1134,8 +1144,8 @@ packages:
dev: false
optional: true
/dayjs/1.11.6:
resolution: {integrity: sha512-zZbY5giJAinCG+7AGaw0wIhNZ6J8AhWuSXKvuc1KAyMiRsvGQWqh4L+MomvhdAYjN+lqvVCMq1I41e3YHvXkyQ==}
/dayjs/1.11.7:
resolution: {integrity: sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==}
dev: false
optional: true
@ -1193,7 +1203,7 @@ packages:
ast-types: 0.13.4
escodegen: 1.14.3
esprima: 4.0.1
vm2: 3.9.11
vm2: 3.9.13
dev: false
optional: true
@ -1221,8 +1231,8 @@ packages:
resolution: {integrity: sha512-QV6PMaHTCNmKSeP6QoXhVTw9snc9VD8MulTT0Bd99Pacp4SS1cjcrYPgBPmibqKVtMJJfqC6XvOXgPMEEPH/fg==}
dev: false
/discord-api-types/0.37.20:
resolution: {integrity: sha512-uAO+55E11rMkYR36/paE1vKN8c2bZa1mgrIaiQIBgIZRKZTDIGOZB+8I5eMRPFJcGxrg16riUu+0aTu2JQEPew==}
/discord-api-types/0.37.22:
resolution: {integrity: sha512-1FSm5hIUaxt3e+3H6lhY5Hg32DTJCPp3Q5gf3CM2CPSr95ZnqkSNEV0s7EdiBrlv5QoPrpcPIDYC3hWqZT2mIg==}
dev: false
optional: true
@ -1321,24 +1331,26 @@ packages:
dev: false
optional: true
/eslint-plugin-unicorn/44.0.2_eslint@8.28.0:
resolution: {integrity: sha512-GLIDX1wmeEqpGaKcnMcqRvMVsoabeF0Ton0EX4Th5u6Kmf7RM9WBl705AXFEsns56ESkEs0uyelLuUTvz9Tr0w==}
/eslint-plugin-unicorn/45.0.2_eslint@8.29.0:
resolution: {integrity: sha512-Y0WUDXRyGDMcKLiwgL3zSMpHrXI00xmdyixEGIg90gHnj0PcHY4moNv3Ppje/kDivdAy5vUeUr7z211ImPv2gw==}
engines: {node: '>=14.18'}
peerDependencies:
eslint: '>=8.23.1'
eslint: '>=8.28.0'
dependencies:
'@babel/helper-validator-identifier': 7.19.1
'@eslint-community/eslint-utils': 4.1.2_eslint@8.29.0
ci-info: 3.7.0
clean-regexp: 1.0.0
eslint: 8.28.0
eslint-utils: 3.0.0_eslint@8.28.0
eslint: 8.29.0
esquery: 1.4.0
indent-string: 4.0.0
is-builtin-module: 3.2.0
jsesc: 3.0.2
lodash: 4.17.21
pluralize: 8.0.0
read-pkg-up: 7.0.1
regexp-tree: 0.1.24
regjsparser: 0.9.1
safe-regex: 2.1.1
semver: 7.3.8
strip-indent: 3.0.0
@ -1365,13 +1377,13 @@ packages:
estraverse: 5.3.0
dev: true
/eslint-utils/3.0.0_eslint@8.28.0:
/eslint-utils/3.0.0_eslint@8.29.0:
resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==}
engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0}
peerDependencies:
eslint: '>=5'
dependencies:
eslint: 8.28.0
eslint: 8.29.0
eslint-visitor-keys: 2.1.0
dev: true
@ -1385,8 +1397,8 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
/eslint/8.28.0:
resolution: {integrity: sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==}
/eslint/8.29.0:
resolution: {integrity: sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
hasBin: true
dependencies:
@ -1401,7 +1413,7 @@ packages:
doctrine: 3.0.0
escape-string-regexp: 4.0.0
eslint-scope: 7.1.1
eslint-utils: 3.0.0_eslint@8.28.0
eslint-utils: 3.0.0_eslint@8.29.0
eslint-visitor-keys: 3.3.0
espree: 9.4.1
esquery: 1.4.0
@ -1410,9 +1422,9 @@ packages:
file-entry-cache: 6.0.1
find-up: 5.0.0
glob-parent: 6.0.2
globals: 13.18.0
globals: 13.19.0
grapheme-splitter: 1.0.4
ignore: 5.2.0
ignore: 5.2.1
import-fresh: 3.3.0
imurmurhash: 0.1.4
is-glob: 4.0.3
@ -1512,8 +1524,8 @@ packages:
/fast-levenshtein/2.0.6:
resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
/fastq/1.13.0:
resolution: {integrity: sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==}
/fastq/1.14.0:
resolution: {integrity: sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg==}
dependencies:
reusify: 1.0.4
dev: true
@ -1765,8 +1777,8 @@ packages:
engines: {node: '>=4'}
dev: true
/globals/13.18.0:
resolution: {integrity: sha512-/mR4KI8Ps2spmoc0Ulu9L7agOF0du1CZNQ3dke8yItYlyKNmGrkONemBbd6V8UTc1Wgcqn21t3WYB7dbRmh6/A==}
/globals/13.19.0:
resolution: {integrity: sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==}
engines: {node: '>=8'}
dependencies:
type-fest: 0.20.2
@ -1849,8 +1861,8 @@ packages:
resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
dev: false
/ignore/5.2.0:
resolution: {integrity: sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==}
/ignore/5.2.1:
resolution: {integrity: sha512-d2qQLzTJ9WxQftPAuEQpSPmKqzxePjzVbpAVv62AQ64NTL+wR4JkrVqR/LqFsFEUsHDAiId52mJteHDFuDkElA==}
engines: {node: '>= 4'}
dev: true
@ -1986,12 +1998,23 @@ packages:
argparse: 2.0.1
dev: true
/jsesc/0.5.0:
resolution: {integrity: sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==}
hasBin: true
dev: true
/jsesc/2.5.2:
resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==}
engines: {node: '>=4'}
hasBin: true
dev: true
/jsesc/3.0.2:
resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==}
engines: {node: '>=6'}
hasBin: true
dev: true
/json-parse-even-better-errors/2.3.1:
resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}
dev: true
@ -2161,6 +2184,13 @@ packages:
yallist: 4.0.0
dev: true
/minipass/4.0.0:
resolution: {integrity: sha512-g2Uuh2jEKoht+zvO6vJqXmYpflPqzRBT+Th2h01DKh5z7wbY/AZ2gCQ78cP70YoHPyFdY30YBV5WxgLOEwOykw==}
engines: {node: '>=8'}
dependencies:
yallist: 4.0.0
dev: true
/minizlib/2.1.2:
resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==}
engines: {node: '>= 8'}
@ -2231,8 +2261,8 @@ packages:
dev: false
optional: true
/node-abi/3.28.0:
resolution: {integrity: sha512-fRlDb4I0eLcQeUvGq7IY3xHrSb0c9ummdvDSYWfT9+LKP+3jCKw/tKoqaM7r1BAoiAC6GtwyjaGnOz6B3OtF+A==}
/node-abi/3.30.0:
resolution: {integrity: sha512-qWO5l3SCqbwQavymOmtTVuCWZE23++S+rxyoHjXqUmPyzRcaoI4lA2gO55/drddGnedAyjA7sk76SfQ5lfUMnw==}
engines: {node: '>=10'}
dependencies:
semver: 7.3.8
@ -2300,11 +2330,11 @@ packages:
engines: {node: '>= 6'}
dev: false
/oceanic.js/1.3.1_bufferutil@4.0.7:
resolution: {integrity: sha512-UhP9lLMaDQsUqerhMvJ4Rye3gLamXD6HWsn0h35CAj1eJ9sZacsCUoww6meU05y0YUPVIGiDNyKNZ77HA/8J5g==}
/oceanic.js/1.3.2_bufferutil@4.0.7:
resolution: {integrity: sha512-nLedv0gmtMTnAVJQWIePWf7nz/7fRzYpoQndiwsn8X9CGRDAYDgtmdCtUD+EylkIN5zRNg+aWm6EcriKEXCZUg==}
engines: {node: '>=16.16.0'}
dependencies:
undici: 5.13.0
undici: 5.14.0
ws: 8.11.0_bufferutil@4.0.7
optionalDependencies:
'@discordjs/voice': 0.13.0_bufferutil@4.0.7
@ -2531,7 +2561,7 @@ packages:
async: 3.2.4
debug: 4.3.4
pidusage: 2.0.21
systeminformation: 5.14.4
systeminformation: 5.16.6
tx2: 1.0.5
transitivePeerDependencies:
- supports-color
@ -2555,7 +2585,7 @@ packages:
cli-tableau: 2.0.1
commander: 2.15.1
croner: 4.1.97
dayjs: 1.11.6
dayjs: 1.11.7
debug: 4.3.4
enquirer: 2.3.6
eventemitter2: 5.0.1
@ -2604,7 +2634,7 @@ packages:
minimist: 1.2.7
mkdirp-classic: 0.5.3
napi-build-utils: 1.0.2
node-abi: 3.28.0
node-abi: 3.30.0
pump: 3.0.0
rc: 1.2.8
simple-get: 4.0.1
@ -2788,6 +2818,13 @@ packages:
engines: {node: '>=8'}
dev: true
/regjsparser/0.9.1:
resolution: {integrity: sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==}
hasBin: true
dependencies:
jsesc: 0.5.0
dev: true
/require-directory/2.1.1:
resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
engines: {node: '>=0.10.0'}
@ -2934,7 +2971,7 @@ packages:
resolution: {integrity: sha512-GhgjV4i3gbN9cnX+RtbvIcLk4/dVJqOQFId33Quu5H9Pkm7kYi1ISqjIel4G4gJo4x3hdxAncvTiKCctcgQeaQ==}
engines: {node: '>=16.0.0', npm: '>=7.0.0'}
dependencies:
undici: 5.13.0
undici: 5.14.0
ws: 8.11.0_bufferutil@4.0.7
transitivePeerDependencies:
- bufferutil
@ -3115,8 +3152,8 @@ packages:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
/systeminformation/5.14.4:
resolution: {integrity: sha512-SpFIc6AkGL4RCtwmhCoECFdvnVVk/heA+pxdgjXvxW75oLQsJVXz0epNRNnnMucrk/+rvKFnMqC4LorDE5xzmQ==}
/systeminformation/5.16.6:
resolution: {integrity: sha512-FLljCM7UmCVnilpQvX9b1SptMjuxPrtlqqSsFPI/3nQ19ZDJSalpph/9K707y5N6gT1loJwG42j+xVhX0RwuFw==}
engines: {node: '>=8.0.0'}
os: [darwin, linux, win32, freebsd, openbsd, netbsd, sunos, android]
hasBin: true
@ -3143,13 +3180,13 @@ packages:
readable-stream: 3.6.0
dev: false
/tar/6.1.12:
resolution: {integrity: sha512-jU4TdemS31uABHd+Lt5WEYJuzn+TJTCBLljvIAHZOz6M9Os5pJ4dD+vRFLxPa/n3T0iEFzpi+0x1UfuDZYbRMw==}
/tar/6.1.13:
resolution: {integrity: sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==}
engines: {node: '>=10'}
dependencies:
chownr: 2.0.0
fs-minipass: 2.1.0
minipass: 3.3.6
minipass: 4.0.0
minizlib: 2.1.2
mkdirp: 1.0.4
yallist: 4.0.0
@ -3253,8 +3290,8 @@ packages:
engines: {node: '>=8'}
dev: true
/undici/5.13.0:
resolution: {integrity: sha512-UDZKtwb2k7KRsK4SdXWG7ErXiL7yTGgLWvk2AXO1JMjgjh404nFo6tWSCM2xMpJwMPx3J8i/vfqEh1zOqvj82Q==}
/undici/5.14.0:
resolution: {integrity: sha512-yJlHYw6yXPPsuOH0x2Ib1Km61vu4hLiRRQoafs+WUgX1vO64vgnxiCEN9dpIrhZyHFsai3F0AEj4P9zy19enEQ==}
engines: {node: '>=12.18'}
dependencies:
busboy: 1.6.0
@ -3333,8 +3370,8 @@ packages:
dev: false
optional: true
/vm2/3.9.11:
resolution: {integrity: sha512-PFG8iJRSjvvBdisowQ7iVF580DXb1uCIiGaXgm7tynMR1uTBlv7UJlB1zdv5KJ+Tmq1f0Upnj3fayoEOPpCBKg==}
/vm2/3.9.13:
resolution: {integrity: sha512-0rvxpB8P8Shm4wX2EKOiMp7H2zq+HUE/UwodY0pCZXs9IffIKZq6vUti5OgkVCTakKo9e/fgO4X1fkwfjWxE3Q==}
engines: {node: '>=6.0'}
hasBin: true
dependencies:

View file

@ -59,7 +59,7 @@ const getImage = async (image, image2, video, extraReturnTypes, gifv = false, ty
const redirect = (await request(image2, { method: "HEAD" })).headers.location;
id = redirect.split("-").pop();
}
const data = await request(`https://tenor.googleapis.com/v2/posts?ids=${id}&media_filter=gif&limit=1&key=${process.env.TENOR}`);
const data = await request(`https://tenor.googleapis.com/v2/posts?ids=${id}&media_filter=gif&limit=1&client_key=esmBot%20${process.env.ESMBOT_VER}&key=${process.env.TENOR}`);
if (data.statusCode === 429) {
if (extraReturnTypes) {
payload.type = "tenorlimit";