make tags required lol
This commit is contained in:
parent
67bc03433e
commit
3ff8ebadfd
3 changed files with 8 additions and 10 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue