how did I overlook this
This commit is contained in:
parent
c72526cc2b
commit
03ed19d239
55 changed files with 62 additions and 61 deletions
|
@ -9,6 +9,7 @@ class ImageSearchCommand extends Command {
|
|||
if (this.message.channel.guild && !this.message.channel.permissionsOf(this.client.user.id).has("addReactions")) return "I don't have the `Add Reactions` permission!";
|
||||
if (this.message.channel.guild && !this.message.channel.permissionsOf(this.client.user.id).has("embedLinks")) return "I don't have the `Embed Links` permission!";
|
||||
if (this.args.length === 0) return "You need to provide something to search for!";
|
||||
await this.message.channel.sendTyping();
|
||||
const embeds = [];
|
||||
const images = await fetch(`${random(searx)}/search?format=json&safesearch=1&categories=images&disabled_engines=flickr__images,ccengine__images,library of congress__images,deviantart__images,bing images__images&q=${encodeURIComponent(this.args.join(" "))}`).then(res => res.json());
|
||||
//if (images.error && images.error.code === 403) return "The daily search quota has been exceeded. Check back later.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue