diff --git a/package-lock.json b/package-lock.json index 89cb8ae8..9157c49f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,38 +1,38 @@ { "name": "ririko", - "version": "0.8.1", + "version": "0.8.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ririko", - "version": "0.8.1", + "version": "0.8.2", "license": "MIT", "dependencies": { - "@discordjs/builders": "^1.6.1", + "@discordjs/builders": "^1.6.3", "@discordjs/opus": "^0.9.0", - "@discordjs/rest": "^1.5.0", + "@discordjs/rest": "^1.7.1", "@discordjs/voice": "^0.16.0", "@distube/deezer": "^1.0.0", "@distube/soundcloud": "^1.3.0", "@distube/spotify": "^1.5.1", "@distube/yt-dlp": "^1.1.3", "@distube/ytdl-core": "^4.11.7", - "@vitalets/google-translate-api": "^9.1.0", + "@vitalets/google-translate-api": "^9.2.0", "anime-wallpaper": "^1.1.1", "axios": "^1.4.0", - "better-sqlite3": "^8.2.0", + "better-sqlite3": "^8.4.0", "canvas": "^2.11.2", "cheerio": "^1.0.0-rc.12", "colors": "^1.4.0", "country-emoji-languages": "^1.0.0", "date-fns": "^2.30.0", "decimal.js": "^10.4.3", - "discord-api-types": "^0.37.37", + "discord-api-types": "^0.37.47", "discord-giveaways": "^6.0.1", "discord.js": "^14.8.0", "distube": "^4.0.4", - "dotenv": "^16.0.3", + "dotenv": "^16.3.1", "enhanced-ms": "^2.3.0", "express": "^4.18.2", "ffmpeg": "^0.0.4", @@ -42,21 +42,21 @@ "iso-639-1": "^2.1.15", "jest": "^29.5.0", "libsodium-wrappers": "^0.7.11", - "mathjs": "^11.6.0", + "mathjs": "^11.8.2", "moment": "^2.29.4", - "mongodb": "^5.1.0", - "mongoose": "^7.0.1", + "mongodb": "^5.6.0", + "mongoose": "^7.3.1", "ms": "^2.1.3", "nekos.life": "^3.0.0", - "nlpcloud": "^1.0.41", - "node-fetch": "^2.6.7", + "nlpcloud": "^1.0.47", + "node-fetch": "^3.3.1", "npm-run-all": "^4.1.5", "openai": "^3.2.1", "parsec": "^2.0.2", - "pino": "^8.11.0", + "pino": "^8.14.1", "pino-pretty": "^10.0.0", "pretty-ms": "^8.0.0", - "quick.db": "^9.1.3", + "quick.db": "^9.1.6", "redis": "^4.6.7", "replicate": "^0.12.3", "save-dev": "^0.0.1-security", @@ -1977,6 +1977,25 @@ "semver": "bin/semver.js" } }, + "node_modules/@discordjs/node-pre-gyp/node_modules/node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, "node_modules/@discordjs/node-pre-gyp/node_modules/semver": { "version": "7.5.1", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", @@ -1991,6 +2010,25 @@ "node": ">=10" } }, + "node_modules/@discordjs/node-pre-gyp/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/@discordjs/node-pre-gyp/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/@discordjs/node-pre-gyp/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/@discordjs/node-pre-gyp/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -2911,6 +2949,25 @@ "semver": "bin/semver.js" } }, + "node_modules/@mapbox/node-pre-gyp/node_modules/node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, "node_modules/@mapbox/node-pre-gyp/node_modules/semver": { "version": "7.5.1", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", @@ -2925,6 +2982,25 @@ "node": ">=10" } }, + "node_modules/@mapbox/node-pre-gyp/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/@mapbox/node-pre-gyp/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/@mapbox/node-pre-gyp/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/@mapbox/node-pre-gyp/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -3191,6 +3267,44 @@ "node": ">=14" } }, + "node_modules/@vitalets/google-translate-api/node_modules/node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/@vitalets/google-translate-api/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/@vitalets/google-translate-api/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/@vitalets/google-translate-api/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/@vladfrangu/async_event_emitter": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/@vladfrangu/async_event_emitter/-/async_event_emitter-2.2.2.tgz", @@ -5183,6 +5297,14 @@ "node": ">=8" } }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "engines": { + "node": ">= 12" + } + }, "node_modules/date-fns": { "version": "2.30.0", "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", @@ -5342,9 +5464,9 @@ } }, "node_modules/discord-api-types": { - "version": "0.37.46", - "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.46.tgz", - "integrity": "sha512-DeSi5WSWYTeXJJhdwACtpQycY3g4vLRvE2Ol5IlC0o//P2W+8jXPF447PuJn2fRH1nD7JGEJ3YMb0NB9+OQ7BQ==" + "version": "0.37.47", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.47.tgz", + "integrity": "sha512-rNif8IAv6duS2z47BMXq/V9kkrLfkAoiwpFY3sLxxbyKprk065zqf3HLTg4bEoxRSmi+Lhc7yqGDrG8C3j8GFA==" }, "node_modules/discord-giveaways": { "version": "6.0.1", @@ -5897,6 +6019,28 @@ "bser": "2.1.1" } }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, "node_modules/ffmpeg": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/ffmpeg/-/ffmpeg-0.0.4.tgz", @@ -6066,6 +6210,17 @@ "node": ">= 6" } }, + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, "node_modules/formidable": { "version": "1.2.6", "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.6.tgz", @@ -9211,9 +9366,9 @@ "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" }, "node_modules/nlpcloud": { - "version": "1.0.46", - "resolved": "https://registry.npmjs.org/nlpcloud/-/nlpcloud-1.0.46.tgz", - "integrity": "sha512-4ip51mK2EYdnnVz0sQr8u327tDWR46ofF3tVJWsA3bMU/OuG6wU6dE8CxnDRcHTAtTSF1XCC9LVlenGze/OXZQ==", + "version": "1.0.47", + "resolved": "https://registry.npmjs.org/nlpcloud/-/nlpcloud-1.0.47.tgz", + "integrity": "sha512-ZKplEnTT4Hl/MKlkD06Ot23RPObwFhrAcTI4fQRMz/CoCJnKydwn7XFAlGku427edkCfw4oxesLqeTLoydX7QA==", "dependencies": { "axios": "^0.21.1" } @@ -9272,6 +9427,24 @@ "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==" }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "engines": { + "node": ">=10.5.0" + } + }, "node_modules/node-environment-flags": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.6.tgz", @@ -9292,6 +9465,45 @@ } }, "node_modules/node-fetch": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.1.tgz", + "integrity": "sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==", + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" + }, + "node_modules/node-releases": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==" + }, + "node_modules/node-superfetch": { + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/node-superfetch/-/node-superfetch-0.1.11.tgz", + "integrity": "sha512-984lO43EvDtjBOpVXDqnR2L5+pVt+qWfqIE6H7Sl21BoIz26OwSKxBnO9ZmJkYXAimR64MUPiz6tn5hySy1d0Q==", + "dependencies": { + "form-data": "^3.0.0", + "node-fetch": "^2.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/node-superfetch/node_modules/node-fetch": { "version": "2.6.11", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", @@ -9310,17 +9522,17 @@ } } }, - "node_modules/node-fetch/node_modules/tr46": { + "node_modules/node-superfetch/node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, - "node_modules/node-fetch/node_modules/webidl-conversions": { + "node_modules/node-superfetch/node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, - "node_modules/node-fetch/node_modules/whatwg-url": { + "node_modules/node-superfetch/node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", @@ -9329,28 +9541,6 @@ "webidl-conversions": "^3.0.0" } }, - "node_modules/node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" - }, - "node_modules/node-releases": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", - "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==" - }, - "node_modules/node-superfetch": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/node-superfetch/-/node-superfetch-0.1.11.tgz", - "integrity": "sha512-984lO43EvDtjBOpVXDqnR2L5+pVt+qWfqIE6H7Sl21BoIz26OwSKxBnO9ZmJkYXAimR64MUPiz6tn5hySy1d0Q==", - "dependencies": { - "form-data": "^3.0.0", - "node-fetch": "^2.6.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/nodemon": { "version": "2.0.22", "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz", @@ -11155,6 +11345,44 @@ "node-fetch": "^2.6.0" } }, + "node_modules/sourcebin_js/node_modules/node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/sourcebin_js/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/sourcebin_js/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/sourcebin_js/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/sparse-bitfield": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", @@ -11919,6 +12147,14 @@ "makeerror": "1.0.12" } }, + "node_modules/web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "engines": { + "node": ">= 8" + } + }, "node_modules/webidl-conversions": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", diff --git a/package.json b/package.json index 3440e983..4dd15265 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ririko", - "version": "0.8.1", + "version": "0.8.2", "description": "Ririko - A powerful AI-powered general Discord bot that you can call your companion", "author": "Earnest Angel", "email": "me@angel.net.my", @@ -41,30 +41,30 @@ "node": "18.16.0" }, "dependencies": { - "@discordjs/builders": "^1.6.1", + "@discordjs/builders": "^1.6.3", "@discordjs/opus": "^0.9.0", - "@discordjs/rest": "^1.5.0", + "@discordjs/rest": "^1.7.1", "@discordjs/voice": "^0.16.0", "@distube/deezer": "^1.0.0", "@distube/soundcloud": "^1.3.0", "@distube/spotify": "^1.5.1", "@distube/yt-dlp": "^1.1.3", "@distube/ytdl-core": "^4.11.7", - "@vitalets/google-translate-api": "^9.1.0", + "@vitalets/google-translate-api": "^9.2.0", "anime-wallpaper": "^1.1.1", "axios": "^1.4.0", - "better-sqlite3": "^8.2.0", + "better-sqlite3": "^8.4.0", "canvas": "^2.11.2", "cheerio": "^1.0.0-rc.12", "colors": "^1.4.0", "country-emoji-languages": "^1.0.0", "date-fns": "^2.30.0", "decimal.js": "^10.4.3", - "discord-api-types": "^0.37.37", + "discord-api-types": "^0.37.47", "discord-giveaways": "^6.0.1", "discord.js": "^14.8.0", "distube": "^4.0.4", - "dotenv": "^16.0.3", + "dotenv": "^16.3.1", "enhanced-ms": "^2.3.0", "express": "^4.18.2", "ffmpeg": "^0.0.4", @@ -74,21 +74,21 @@ "iso-639-1": "^2.1.15", "jest": "^29.5.0", "libsodium-wrappers": "^0.7.11", - "mathjs": "^11.6.0", + "mathjs": "^11.8.2", "moment": "^2.29.4", - "mongodb": "^5.1.0", - "mongoose": "^7.0.1", + "mongodb": "^5.6.0", + "mongoose": "^7.3.1", "ms": "^2.1.3", "nekos.life": "^3.0.0", - "nlpcloud": "^1.0.41", - "node-fetch": "^2.6.7", + "nlpcloud": "^1.0.47", + "node-fetch": "^3.3.1", "npm-run-all": "^4.1.5", "openai": "^3.2.1", "parsec": "^2.0.2", - "pino": "^8.11.0", + "pino": "^8.14.1", "pino-pretty": "^10.0.0", "pretty-ms": "^8.0.0", - "quick.db": "^9.1.3", + "quick.db": "^9.1.6", "redis": "^4.6.7", "replicate": "^0.12.3", "save-dev": "^0.0.1-security", diff --git a/src/commands/prefix/Anime/foxgirl.js b/src/commands/prefix/Anime/foxgirl.js index b4cbfefb..62ba4169 100644 --- a/src/commands/prefix/Anime/foxgirl.js +++ b/src/commands/prefix/Anime/foxgirl.js @@ -1,5 +1,4 @@ const { MessageEmbed, EmbedBuilder } = require("discord.js"); -const fetch = require("node-fetch"); const { getLang } = require("helpers/language"); module.exports = { diff --git a/src/commands/prefix/Anime/gasm.js b/src/commands/prefix/Anime/gasm.js index a1f8bf3d..f7b2440d 100644 --- a/src/commands/prefix/Anime/gasm.js +++ b/src/commands/prefix/Anime/gasm.js @@ -1,5 +1,4 @@ const { MessageEmbed, EmbedBuilder } = require("discord.js"); -const fetch = require("node-fetch"); const { getLang } = require("helpers/language"); module.exports = { diff --git a/src/commands/prefix/Anime/nekogif.js b/src/commands/prefix/Anime/nekogif.js index 5188995e..68b3af50 100644 --- a/src/commands/prefix/Anime/nekogif.js +++ b/src/commands/prefix/Anime/nekogif.js @@ -1,5 +1,4 @@ const { MessageEmbed, EmbedBuilder } = require("discord.js"); -const fetch = require("node-fetch"); const { getLang } = require("helpers/language"); module.exports = { diff --git a/src/commands/prefix/Anime/waifu.js b/src/commands/prefix/Anime/waifu.js index 882d3dfb..b18b4cb3 100644 --- a/src/commands/prefix/Anime/waifu.js +++ b/src/commands/prefix/Anime/waifu.js @@ -1,5 +1,4 @@ const { MessageEmbed, EmbedBuilder } = require("discord.js"); -const fetch = require("node-fetch"); const { getLang } = require("helpers/language"); module.exports = { diff --git a/src/commands/prefix/Anime/wallpaper.js b/src/commands/prefix/Anime/wallpaper.js index 74f27996..ab06dbd4 100644 --- a/src/commands/prefix/Anime/wallpaper.js +++ b/src/commands/prefix/Anime/wallpaper.js @@ -9,8 +9,6 @@ const { const { AnimeWallpaper } = require("anime-wallpaper"); const wall = new AnimeWallpaper(); const { getLang } = require("helpers/language"); -const fetch = require("node-fetch"); - module.exports = { config: { name: "wallpaper", diff --git a/src/commands/prefix/Anime/wink.js b/src/commands/prefix/Anime/wink.js index 45003a4f..03f123c1 100644 --- a/src/commands/prefix/Anime/wink.js +++ b/src/commands/prefix/Anime/wink.js @@ -1,5 +1,4 @@ const { MessageEmbed, EmbedBuilder } = require("discord.js"); -const fetch = require("node-fetch"); const { getLang } = require("helpers/language"); module.exports = { diff --git a/src/commands/prefix/Fun/spoiler.js b/src/commands/prefix/Fun/spoiler.js index 06e625e1..8fb1f8c8 100644 --- a/src/commands/prefix/Fun/spoiler.js +++ b/src/commands/prefix/Fun/spoiler.js @@ -1,5 +1,4 @@ const { MessageEmbed, EmbedBuilder } = require("discord.js"); -const fetch = require("node-fetch"); const { getLang } = require("helpers/language"); module.exports = { diff --git a/src/commands/prefix/Giveaway/create.js b/src/commands/prefix/Giveaway/create.js index 59c99fcc..cb56481c 100644 --- a/src/commands/prefix/Giveaway/create.js +++ b/src/commands/prefix/Giveaway/create.js @@ -10,9 +10,9 @@ let created = false; module.exports = { config: { - name: "giveaway-create", + name: "gcreate", description: "Create a new giveaway (Wizard)", - usage: "giveaway-create", + usage: "gcreate", }, category: "Giveaways", owner: false, diff --git a/src/commands/prefix/Giveaway/drop.js b/src/commands/prefix/Giveaway/drop.js index 68deb742..5bfba2a2 100644 --- a/src/commands/prefix/Giveaway/drop.js +++ b/src/commands/prefix/Giveaway/drop.js @@ -4,9 +4,9 @@ const messages = require("helpers/message"); module.exports = { config: { - name: "giveaway-drop", + name: "gdrop", description: "Create a new drop giveaway (click to win)", - usage: "giveaway-drop [#channel] [winners] [prize]", + usage: "gdrop [#channel] [winners] [prize]", }, category: "Giveaways", owner: false, diff --git a/src/commands/prefix/Giveaway/edit.js b/src/commands/prefix/Giveaway/edit.js index 865a81bb..550bc425 100644 --- a/src/commands/prefix/Giveaway/edit.js +++ b/src/commands/prefix/Giveaway/edit.js @@ -3,9 +3,9 @@ */ module.exports = { config: { - name: "giveaway-edit", + name: "gedit", description: "Edit an existing giveaway", - usage: "giveaway-edit", + usage: "gedit", }, category: "Giveaways", owner: false, diff --git a/src/commands/prefix/Giveaway/end.js b/src/commands/prefix/Giveaway/end.js index 16d0b47a..2e3c709b 100644 --- a/src/commands/prefix/Giveaway/end.js +++ b/src/commands/prefix/Giveaway/end.js @@ -3,9 +3,9 @@ */ module.exports = { config: { - name: "giveaway-end", + name: "gend", description: "End an existing giveaway.", - usage: "giveaway-end [message ID]", + usage: "gend [message ID]", }, category: "Giveaways", owner: false, diff --git a/src/commands/prefix/Giveaway/help.js b/src/commands/prefix/Giveaway/help.js index c23d5694..e4eb478a 100644 --- a/src/commands/prefix/Giveaway/help.js +++ b/src/commands/prefix/Giveaway/help.js @@ -11,9 +11,9 @@ const { footer1 } = require("languages/en"); module.exports = { config: { - name: "giveaway-help", + name: "ghelp", description: "Learn how to use the giveaway commands.", - usage: "giveaway-help", + usage: "ghelp", }, category: "Giveaways", owner: false, diff --git a/src/commands/prefix/Giveaway/list.js b/src/commands/prefix/Giveaway/list.js index d5c8db0a..ff90d265 100644 --- a/src/commands/prefix/Giveaway/list.js +++ b/src/commands/prefix/Giveaway/list.js @@ -5,9 +5,9 @@ const Discord = require("discord.js"); module.exports = { config: { - name: "giveaway-list", + name: "glist", description: "List all giveaways.", - usage: "giveaway-list", + usage: "glist", }, category: "Giveaways", owner: false, diff --git a/src/commands/prefix/Giveaway/reroll.js b/src/commands/prefix/Giveaway/reroll.js index 3582e9d8..3e9585f4 100644 --- a/src/commands/prefix/Giveaway/reroll.js +++ b/src/commands/prefix/Giveaway/reroll.js @@ -4,9 +4,9 @@ const ms = require("ms"); module.exports = { config: { - name: "giveaway-reroll", + name: "greroll", description: "Reroll a giveaway.", - usage: "giveaway-reroll [messageId]", + usage: "greroll [messageId]", }, category: "Giveaways", owner: false, diff --git a/src/commands/prefix/Giveaway/start.js b/src/commands/prefix/Giveaway/start.js index ef891d88..e1fe2cc5 100644 --- a/src/commands/prefix/Giveaway/start.js +++ b/src/commands/prefix/Giveaway/start.js @@ -5,9 +5,9 @@ const ms = require("ms"); const messages = require("helpers/message"); module.exports = { config: { - name: "giveaway-start", + name: "gstart", description: "Start a new giveaway", - usage: "giveaway-start [#channel] [duration] [winners] [prize]", + usage: "gstart [#channel] [duration] [winners] [prize]", }, category: "Giveaways", owner: false, diff --git a/src/helpers/httpUtils.js b/src/helpers/httpUtils.js index e332bd60..8a9efb79 100644 --- a/src/helpers/httpUtils.js +++ b/src/helpers/httpUtils.js @@ -1,7 +1,6 @@ const ISO6391 = require("iso-639-1"); const sourcebin = require("sourcebin_js"); const { error, debug } = require("helpers/logger"); -const fetch = require("node-fetch"); const { translate: gTranslate } = require("@vitalets/google-translate-api"); module.exports = class HttpUtils { diff --git a/src/tools/anime.js/src/util.js b/src/tools/anime.js/src/util.js index 6d4502aa..34551d8f 100644 --- a/src/tools/anime.js/src/util.js +++ b/src/tools/anime.js/src/util.js @@ -1,4 +1,3 @@ -const fetch = require("node-fetch"); const cheerio = require("cheerio"); const { Anime, Manga } = require("./animeSearchClass"); const { honorifics } = require("./db");