You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a discord bot using discord.js and node.js.
One of my command code can be seen here: https://pastebin.com/bptJySts
What the command is supposed to do is generate two danbooru images based on the tags provided in 'args', which is an array. However, when I attempt to use the Booru.search, args seems to gain an extra order:random value, which interferes with the search since it adds an extra unneeded value. Is there something wrong with how I'm using the command?
The text was updated successfully, but these errors were encountered:
That's because the package is using order:random (on boorus that support it) to get random results, you can disable it (but then you don't get random results anymore)
A bit more specifically, I want to use the command to get two random danbooru art based on the tags, and also have it so that it only gets ones that are rated 'safe'.
Because danbooru is very strict about the number of tags you can use, you could only pass in the (2) search tags the user gives, and then from the 100 results you get, filter out all the nsfw ones and randomly pick 2.
You would only then be able to get results from the 100 latest images, but you could at least search with 2 tags at a time. The only other options are to either limit it to 1 tag from the user, pay for a danbooru api key, or use another booru.
I'm working on a discord bot using discord.js and node.js.
One of my command code can be seen here: https://pastebin.com/bptJySts
What the command is supposed to do is generate two danbooru images based on the tags provided in 'args', which is an array. However, when I attempt to use the Booru.search, args seems to gain an extra
order:random
value, which interferes with the search since it adds an extra unneeded value. Is there something wrong with how I'm using the command?The text was updated successfully, but these errors were encountered: