diff --git a/.github/cra-metadata.json b/.github/cra-metadata.json index 2ff02ca78..45277a93f 100644 --- a/.github/cra-metadata.json +++ b/.github/cra-metadata.json @@ -1,3 +1,3 @@ { - "lastReadCommit": "611ef4f11c761f9aa8ab3e738593e068d84d2945" + "lastReadCommit": "62c0bc95e523e55ae88b2b29192533a2eb638977" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 174719b27..86dde00ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,78 @@ # Changelog +### 03-10-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)] + + * **fix:** echo command argument validation not working in interaction mode + + * This issue is mainly due to the way the echo command handled incoming arguments, + and not allowing optional types when using unions, which caused this. + + **Signed-off-by:** Ar Rakin + + * **fix:** type errors after upgrading to discord.js v14.16.3 + + * It seems like in discord.js v14.16.3 a bug was introduced that doesn't + let correct ApplicationCommandType enum values to be passed to + ** CommandBuilder:** :setType() method. This commit adds a workaround to this + bug, by not using enums and instead using a plain-old JavaScript object + (POJO) with TypeScript's `as const` to mimic an enum. + + **Signed-off-by:** Ar Rakin + + +### 29-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)] + + * **docs:** update + + **Signed-off-by:** Ar Rakin + * **docs:** update + + **Signed-off-by:** Ar Rakin + * **chore(extensions):** build extensions [skip ci] + + **Signed-off-by:** Ar Rakin + + +### 28-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)] + + * **docs:** update licensing page + + **Signed-off-by:** Ar Rakin + * **chore(extensions:waifu.pics):** update docs + + **Signed-off-by:** Ar Rakin + + * **chore(extensions):** build extensions [skip ci] + + **Signed-off-by:** Ar Rakin + + +### 27-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)] + + * **chore:** customize typedoc theme + + **Signed-off-by:** GitHub + + * **chore:** add typedoc theme and custom css + + **Signed-off-by:** Ar Rakin + + * **chore:** add typedoc + + **Signed-off-by:** Ar Rakin + + * **chore(extensions):** build extensions [skip ci] + + **Signed-off-by:** Ar Rakin + + +### 26-09-2024 - [[Conventional Release Action](mailto:rakinar2@onesoftnet.eu.org)] + + * **release:** v10.17.2 [skip ci] + + **Signed-off-by:** Conventional Release Action + + ### 26-09-2024 - [[Ar Rakin](mailto:rakinar2@gmail.com)] * **feat:** errors now show full stack trace on debug mode diff --git a/package.json b/package.json index e2c74e4e0..0fbfcd53e 100644 --- a/package.json +++ b/package.json @@ -1,138 +1,138 @@ { - "name": "sudobot", - "version": "10.17.2", - "description": "A Discord bot for moderation purposes.", - "author": { - "name": "Ar Rakin", - "email": "rakinar2@onesoftnet.eu.org", - "url": "https://virtual-designer.github.io" - }, - "main": "build/out/main/main.js", - "license": "AGPL-3.0-or-later", - "keywords": [ - "bot", - "discord-bot", - "moderation", - "automoderation", - "discord-moderation", - "discord-moderation-bot", - "discord-automoderation", - "discord-automoderation-bot" - ], - "homepage": "https://github.com/onesoft-sudo/sudobot", - "icon": "https://res.cloudinary.com/rakinar2/image/upload/v1659628446/SudoBot-new_cvwphw.png", - "readme": "https://github.com/onesoft-sudo/sudobot#readme", - "repository": { - "type": "git", - "url": "https://github.com/onesoft-sudo/sudobot" - }, - "bugs": { - "url": "https://github.com/onesoft-sudo/sudobot/issues", - "email": "sudobot@onesoftnet.eu.org" - }, - "_meta": { - "release_codename": "Delicious Donut", - "release_short_codename": "Donut" - }, - "funding": { - "type": "paypal", - "url": "https://www.sudobot.online/donate?utm_source=package-json&utm_medium=funding&utm_campaign=paypal" - }, - "scripts": { - "start": "node build/out/main/typescript/main.js", - "start:bun": "bun --tsconfig-override=tsconfig.bun.json src/bun.ts", - "prepare": "husky && node -e \"const { symlinkSync, rmSync, existsSync } = require('fs'); const path = require('path'); const link = path.join(process.cwd(), 'node_modules/blazebuild'); if (existsSync(link)) { rmSync(link, { recursive: true }); } symlinkSync(path.join(process.cwd(), 'blazebuild'), link, 'dir');\"", - "dev": "bun run src/main/typescript/bun.ts", - "start:blazew": "node build/out/main/typescript/main.js", - "lint": "eslint src", - "lint:fix": "eslint src --fix", - "build": "tsc && mv build/out/src _build && rm -fr build/out && mv _build build/out && cp -r src/main/resources build/out/main", - "start:prod": "pm2 start ./ecosystem.config.js", - "deploy": "node scripts/deploy-commands.js", - "gen:schema": "node scripts/generate-config-schema.js", - "clean": "rm -frv build tsconfig.tsbuildinfo; make clean", - "test": "vitest", - "shell": "bun run src/main/typescript/shell.ts" - }, - "_moduleAliases": { - "@sudobot": "build/out", - "@framework": "build/out/framework/typescript", - "@main": "build/out/main/typescript", - "@root": "." - }, - "trustedDependencies": [ - "@tensorflow/tfjs-node", - "bcrypt", - "core-js", - "esbuild", - "sharp", - "tesseract.js" - ], - "dependencies": { - "@googleapis/oauth2": "^1.0.7", - "archiver": "^7.0.1", - "ascii-table3": "^0.9.0", - "axios": "^1.7.4", - "bcrypt": "^5.1.1", - "chalk": "^4.1.2", - "cors": "^2.8.5", - "date-fns": "^4.1.0", - "deepmerge": "^4.3.1", - "discord.js": "^14.16.3", - "dot-object": "^2.1.5", - "dotenv": "^16.4.5", - "drizzle-orm": "^0.32.1", - "express": "^4.19.2", - "express-rate-limit": "^7.3.1", - "figlet": "^1.7.0", - "glob": "^11.0.0", - "json5": "^2.2.3", - "jsonwebtoken": "^9.0.2", - "module-alias": "^2.2.3", - "pg": "^8.12.0", - "pm2": "^5.4.2", - "reflect-metadata": "^0.2.2", - "semver": "^7.6.2", - "sharp": "^0.33.4", - "socket.io": "^4.8.0", - "tar": "^7.4.0", - "tslib": "^2.6.3", - "undici": "^6.19.2", - "uuid": "^10.0.0", - "zod": "^3.23.8" - }, - "devDependencies": { - "@commitlint/cli": "^19.3.0", - "@commitlint/config-conventional": "^19.2.2", - "@faker-js/faker": "^8.4.1", - "@onesoftnet/pm2-config": "^0.0.7", - "@types/archiver": "^6.0.2", - "@types/bcrypt": "^5.0.2", - "@types/bun": "latest", - "@types/cors": "^2.8.17", - "@types/dot-object": "^2.1.6", - "@types/express": "^4.17.21", - "@types/figlet": "^1.5.8", - "@types/glob": "^8.1.0", - "@types/jsonwebtoken": "^9.0.6", - "@types/module-alias": "^2.0.4", - "@types/node": "^22.0.0", - "@types/pg": "^8.11.6", - "@types/semver": "^7.5.8", - "@types/tar": "^6.1.13", - "@types/uuid": "^10.0.0", - "@typescript-eslint/eslint-plugin": "^7.16.1", - "@typescript-eslint/parser": "^7.16.1", - "@vitest/coverage-v8": "^1.6.0", - "eslint": "^8.57.0", - "husky": "^9.1.3", - "prettier": "^3.3.3", - "typedoc": "^0.26.7", - "typedoc-material-theme": "^1.1.0", - "typedoc-plugin-rename-defaults": "^0.7.1", - "typescript": "^5.5.3", - "typescript-eslint": "^7.16.1", - "vitest": "^1.6.0", - "zod-to-json-schema": "^3.23.1" - } + "name": "sudobot", + "version": "10.17.4", + "description": "A Discord bot for moderation purposes.", + "author": { + "name": "Ar Rakin", + "email": "rakinar2@onesoftnet.eu.org", + "url": "https://virtual-designer.github.io" + }, + "main": "build/out/main/main.js", + "license": "AGPL-3.0-or-later", + "keywords": [ + "bot", + "discord-bot", + "moderation", + "automoderation", + "discord-moderation", + "discord-moderation-bot", + "discord-automoderation", + "discord-automoderation-bot" + ], + "homepage": "https://github.com/onesoft-sudo/sudobot", + "icon": "https://res.cloudinary.com/rakinar2/image/upload/v1659628446/SudoBot-new_cvwphw.png", + "readme": "https://github.com/onesoft-sudo/sudobot#readme", + "repository": { + "type": "git", + "url": "https://github.com/onesoft-sudo/sudobot" + }, + "bugs": { + "url": "https://github.com/onesoft-sudo/sudobot/issues", + "email": "sudobot@onesoftnet.eu.org" + }, + "_meta": { + "release_codename": "Delicious Donut", + "release_short_codename": "Donut" + }, + "funding": { + "type": "paypal", + "url": "https://www.sudobot.online/donate?utm_source=package-json&utm_medium=funding&utm_campaign=paypal" + }, + "scripts": { + "start": "node build/out/main/typescript/main.js", + "start:bun": "bun --tsconfig-override=tsconfig.bun.json src/bun.ts", + "prepare": "husky && node -e \"const { symlinkSync, rmSync, existsSync } = require('fs'); const path = require('path'); const link = path.join(process.cwd(), 'node_modules/blazebuild'); if (existsSync(link)) { rmSync(link, { recursive: true }); } symlinkSync(path.join(process.cwd(), 'blazebuild'), link, 'dir');\"", + "dev": "bun run src/main/typescript/bun.ts", + "start:blazew": "node build/out/main/typescript/main.js", + "lint": "eslint src", + "lint:fix": "eslint src --fix", + "build": "tsc && mv build/out/src _build && rm -fr build/out && mv _build build/out && cp -r src/main/resources build/out/main", + "start:prod": "pm2 start ./ecosystem.config.js", + "deploy": "node scripts/deploy-commands.js", + "gen:schema": "node scripts/generate-config-schema.js", + "clean": "rm -frv build tsconfig.tsbuildinfo; make clean", + "test": "vitest", + "shell": "bun run src/main/typescript/shell.ts" + }, + "_moduleAliases": { + "@sudobot": "build/out", + "@framework": "build/out/framework/typescript", + "@main": "build/out/main/typescript", + "@root": "." + }, + "trustedDependencies": [ + "@tensorflow/tfjs-node", + "bcrypt", + "core-js", + "esbuild", + "sharp", + "tesseract.js" + ], + "dependencies": { + "@googleapis/oauth2": "^1.0.7", + "archiver": "^7.0.1", + "ascii-table3": "^0.9.0", + "axios": "^1.7.4", + "bcrypt": "^5.1.1", + "chalk": "^4.1.2", + "cors": "^2.8.5", + "date-fns": "^4.1.0", + "deepmerge": "^4.3.1", + "discord.js": "^14.16.3", + "dot-object": "^2.1.5", + "dotenv": "^16.4.5", + "drizzle-orm": "^0.32.1", + "express": "^4.19.2", + "express-rate-limit": "^7.3.1", + "figlet": "^1.7.0", + "glob": "^11.0.0", + "json5": "^2.2.3", + "jsonwebtoken": "^9.0.2", + "module-alias": "^2.2.3", + "pg": "^8.12.0", + "pm2": "^5.4.2", + "reflect-metadata": "^0.2.2", + "semver": "^7.6.2", + "sharp": "^0.33.4", + "socket.io": "^4.8.0", + "tar": "^7.4.0", + "tslib": "^2.6.3", + "undici": "^6.19.2", + "uuid": "^10.0.0", + "zod": "^3.23.8" + }, + "devDependencies": { + "@commitlint/cli": "^19.3.0", + "@commitlint/config-conventional": "^19.2.2", + "@faker-js/faker": "^8.4.1", + "@onesoftnet/pm2-config": "^0.0.7", + "@types/archiver": "^6.0.2", + "@types/bcrypt": "^5.0.2", + "@types/bun": "latest", + "@types/cors": "^2.8.17", + "@types/dot-object": "^2.1.6", + "@types/express": "^4.17.21", + "@types/figlet": "^1.5.8", + "@types/glob": "^8.1.0", + "@types/jsonwebtoken": "^9.0.6", + "@types/module-alias": "^2.0.4", + "@types/node": "^22.0.0", + "@types/pg": "^8.11.6", + "@types/semver": "^7.5.8", + "@types/tar": "^6.1.13", + "@types/uuid": "^10.0.0", + "@typescript-eslint/eslint-plugin": "^7.16.1", + "@typescript-eslint/parser": "^7.16.1", + "@vitest/coverage-v8": "^1.6.0", + "eslint": "^8.57.0", + "husky": "^9.1.3", + "prettier": "^3.3.3", + "typedoc": "^0.26.7", + "typedoc-material-theme": "^1.1.0", + "typedoc-plugin-rename-defaults": "^0.7.1", + "typescript": "^5.5.3", + "typescript-eslint": "^7.16.1", + "vitest": "^1.6.0", + "zod-to-json-schema": "^3.23.1" + } }