Handle API errors more gracefully, fixed sharpen, restrict screenshot to the bot owner

This commit is contained in:
TheEssem 2020-12-14 10:58:31 -06:00
parent 9c496a4984
commit 78ae47dbbb
4 changed files with 20 additions and 6 deletions

View file

@ -5,7 +5,7 @@ exports.run = async (message) => {
const image = await require("../utils/imagedetect.js")(message);
if (image === undefined) return `${message.author.mention}, you need to provide an image to sharpen!`;
const { buffer, type } = await magick.run({
cmd: "sharpen",
cmd: "blur",
path: image.path,
sharp: true
});