diff --git a/package.json b/package.json index 67ec6e0..e333a86 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "author": "", "license": "MIT", "dependencies": { - "@himeka/booru": "github:asadahimeka/booru-search", + "@himeka/booru": "^2.7.7", "@imgproxy/imgproxy-node": "^1.0.6", "discord.js": "^14.16.3", "dotenv": "^16.4.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 498cf59..8ad5676 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@himeka/booru': - specifier: github:asadahimeka/booru-search - version: https://codeload.github.com/asadahimeka/booru-search/tar.gz/9599c1c7e2ab8467ac6b0ce7d5300c621e4b00b9 + specifier: ^2.7.7 + version: 2.7.7 '@imgproxy/imgproxy-node': specifier: ^1.0.6 version: 1.0.6 @@ -60,9 +60,8 @@ packages: resolution: {integrity: sha512-PZ+vLpxGCRtmr2RMkqh8Zp+BenUaJqlS6xhgWKEZcgC/vfHLEzpHtKkB0sl3nZWpwtcKk6YWy+pU3okL2I97FA==} engines: {node: '>=16.11.0'} - '@himeka/booru@https://codeload.github.com/asadahimeka/booru-search/tar.gz/9599c1c7e2ab8467ac6b0ce7d5300c621e4b00b9': - resolution: {tarball: https://codeload.github.com/asadahimeka/booru-search/tar.gz/9599c1c7e2ab8467ac6b0ce7d5300c621e4b00b9} - version: 2.7.7 + '@himeka/booru@2.7.7': + resolution: {integrity: sha512-8svZVugOp7eaIU6YN6+Fol+thHv++wrkSD0aOKCp+MKX4T7L9hjQ8c+YcKl00Ty6PBgNTAM9mikbVQ9xYJrT8w==} engines: {node: '>=10.0.0'} '@imgproxy/imgproxy-js-core@1.0.8': @@ -303,7 +302,7 @@ snapshots: - bufferutil - utf-8-validate - '@himeka/booru@https://codeload.github.com/asadahimeka/booru-search/tar.gz/9599c1c7e2ab8467ac6b0ce7d5300c621e4b00b9': + '@himeka/booru@2.7.7': dependencies: fast-xml-parser: 4.4.0 isomorphic-unfetch: 3.1.0 diff --git a/src/commands/fun/gelbooru.js b/src/commands/fun/gelbooru.js index 600398a..cb353a0 100644 --- a/src/commands/fun/gelbooru.js +++ b/src/commands/fun/gelbooru.js @@ -4,7 +4,7 @@ const { stringify } = require("node:querystring"); const { readFileSync } = require("node:fs"); const { decode } = require("html-entities"); const { extname } = require("node:path"); -const Booru = require('@himeka/booru'); +const Booru = require("@himeka/booru"); const boorus = []; for (const site of Object.keys(Booru.sites)) { @@ -22,13 +22,12 @@ const data = new SlashCommandBuilder() .addStringOption(builder => builder // .setName("tags") - .setRequired(false) + .setRequired(true) .setDescription("Tags to search for") ) .addStringOption(builder => builder // .setName("booru") - .setRequired(false) .setDescription("Booru board to search (default: safebooru.org)") .addChoices(boorus) )