Skip to content

Commit

Permalink
add back erroring for image recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
artifishvr committed May 10, 2024
1 parent 0a3caeb commit 8cff048
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ async function imageRecognition(message) {
imageDetails += `Attached: image of${response.result.description}\n`;
} catch (error) {
console.error(error);
return message.reply(`❌ Error in image recognition! Try again later.`);
};

return imageDetails;
Expand Down

4 comments on commit 8cff048

@Butterroach
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why'd you remove it

@artifishvr
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was testing in a seperate file without discordjs and forgot to add it back when i copy pasted the working code into the main file again

@Butterroach
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh boy time to upload a completely unrelated stock photo of food

@Butterroach
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image_proxy

Please sign in to comment.