diff --git a/package-lock.json b/package-lock.json index 40ef1acb..d33513c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "would-you", - "version": "1.1.1", + "version": "1.3.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "would-you", - "version": "1.1.1", + "version": "1.3.3", "license": "MIT", "dependencies": { "@discordjs/rest": "^2.0.0", @@ -25,6 +25,7 @@ "moment-timezone": "^0.5.43", "mongoose": "^7.5.0", "profanity-check": "^0.0.3", + "prom-client": "^15.0.0", "quickchart-js": "^3.1.3", "topgg-autoposter": "^2.0.1", "uuid": "^9.0.0" @@ -189,6 +190,14 @@ "node": ">= 10" } }, + "node_modules/@opentelemetry/api": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.7.0.tgz", + "integrity": "sha512-AdY5wvN0P2vXBi3b29hxZgSFvdhdxPB9+f0B6s//P9Q8nibRWeA3cHm8UmLpio9ABigkVHJ5NMPk+Mz8VCCyrw==", + "engines": { + "node": ">=8.0.0" + } + }, "node_modules/@sapphire/async-queue": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.5.0.tgz", @@ -545,6 +554,11 @@ "node": ">=8" } }, + "node_modules/bintrees": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bintrees/-/bintrees-1.0.2.tgz", + "integrity": "sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw==" + }, "node_modules/body-parser": { "version": "1.20.1", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", @@ -1790,6 +1804,18 @@ "node": ">=10" } }, + "node_modules/prom-client": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-15.0.0.tgz", + "integrity": "sha512-UocpgIrKyA2TKLVZDSfm8rGkL13C19YrQBAiG3xo3aDFWcHedxRxI3z+cIcucoxpSO0h5lff5iv/SXoxyeopeA==", + "dependencies": { + "@opentelemetry/api": "^1.4.0", + "tdigest": "^0.1.1" + }, + "engines": { + "node": "^16 || ^18 || >=20" + } + }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -2106,6 +2132,14 @@ "node": ">=4" } }, + "node_modules/tdigest": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/tdigest/-/tdigest-0.1.2.tgz", + "integrity": "sha512-+G0LLgjjo9BZX2MfdvPfH+MKLCrxlXSYec5DaPYP1fe6Iyhf0/fSmJ0bFiZ1F8BT6cGXl2LpltQptzjXKWEkKA==", + "dependencies": { + "bintrees": "1.0.2" + } + }, "node_modules/through2": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", diff --git a/src/util/generateText.ts b/src/util/generateText.ts index a115c10e..3404fbe7 100644 --- a/src/util/generateText.ts +++ b/src/util/generateText.ts @@ -12,9 +12,9 @@ export function generateWYR( ): object { const wyrRegexes: Record = { "en_EN": /^(?!.*(?:would you rather)).*$/i, - "de_DE": /^(?!.*(?:würdest du eher)).*$/i, - "es_ES": /^(?!.*(?:preferirías)).*$/i, - "fr_FR": /^(?!.*(?:préfères-tu)).*$/i, + "de_DE": /^(?!.*(?:würdest du eher|wurdest du eher)).*$/i, + "es_ES": /^(?!.*(?:preferirías|preferirias)).*$/i, + "fr_FR": /^(?!.*(?:préfères-tu|preferes-tu)).*$/i, }; const wyrMap: Record = { @@ -52,8 +52,8 @@ export function generateWWYD( ): object { const languageRegex: Record = { "en_EN": /^(?!.*(?:what would you do)).*$/i, - "de_DE": /^(?!.*(?:was würdest du tun)).*$/i, - "es_ES": /^(?!.*(?:qué harías)).*$/i, + "de_DE": /^(?!.*(?:was würdest du tun|was wurdest du tun)).*$/i, + "es_ES": /^(?!.*(?:qué harías|que harias)).*$/i, "fr_FR": /^(?!.*(?:que ferais-tu)).*$/i, };